Stuck with Pololu MinIMU v3

Official forum for open source FreePIE discussion and development.
Post Reply
Rec0iL
One Eyed Hopeful
Posts: 10
Joined: Tue Jul 29, 2014 9:11 pm

Stuck with Pololu MinIMU v3

Post by Rec0iL »

So i have the code up and running on my arduino it prints wonderfull number like you see:
Arduino Output.PNG
But as soon as i try to read it either with AHRSimu:
FreePIE Output.PNG
or this code:

Code: Select all

from System.IO.Ports import SerialPort
port = SerialPort("COM3", 115200)


def update():
   for text in genericCom.ReadExistingString():
      diagnostics.watch(text)

if starting:
   genericCom.update+= update
im getting this:
textvalue.PNG
I really can't figure out the issue...
You do not have the required permissions to view the files attached to this post.
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Stuck with Pololu MinIMU v3

Post by CyberVillain »

AHRS uses a custom binary format, your IMU needs to output in that format to work. Does the IMU support FreeIMU? In that case load it on the IMU and use the FreeIMU software, http://www.varesano.net/

The generic com plugin is only in beta status, plus you are using it wrong

Remove this (Its a raw C# SerialPort class and does not work together with Generic Com plugin)

Code: Select all

from System.IO.Ports import SerialPort
port = SerialPort("COM3", 115200)
And change the reading to this

Code: Select all

ReadLine()
def update():
   text = genericCom.readExistingString():
   diagnostics.watch(text)
You also need to get the latest Version from git
Rec0iL
One Eyed Hopeful
Posts: 10
Joined: Tue Jul 29, 2014 9:11 pm

Re: Stuck with Pololu MinIMU v3

Post by Rec0iL »

Hi CV,
Thanks for the reply
Unfortunatly it's not comatible with the FreeIMU software..

So my code looks like this right now:

Code: Select all

genericCom.ReadLine()
def update():
   text = genericCom.ReadExistingString():
   diagnostics.watch(text)

if starting:
   genericCom.update+= update
and this gives unexpected token ":" after ReadExistingString, if i remove it it gives me
output2.PNG
if i remove genericCom. infront of ReadLine() it says read line is not defined... so i guess it's correct with the genericCom.
I'm on 1.6.152.0 pulled the latest installer or do i need to compile from source?
Thank you for the help.
You do not have the required permissions to view the files attached to this post.
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Stuck with Pololu MinIMU v3

Post by CyberVillain »

Very old version, do you have possibilty to build from source?
Rec0iL
One Eyed Hopeful
Posts: 10
Joined: Tue Jul 29, 2014 9:11 pm

Re: Stuck with Pololu MinIMU v3

Post by Rec0iL »

Yes I do as a student :D
Will load MSVS compile and come back with more results. Thanks :D
Post Reply

Return to “FreePIE”