Raw IMU and Attitude Data from Ardupilot in Dune

65 views
Skip to first unread message

Bjørn Spockeli

unread,
Feb 3, 2015, 10:51:41 AM2/3/15
to lsts-to...@googlegroups.com
Hi,
im trying to get Attitude and Raw IMU data using the Ardupilot Task. In the Ardupilot Task.cpp,  MAV_DATA_STREAM_RAW_SENSORS are requested at 50 Hz, wich is hardcoded. This gives me the acceleration and angular velocity from the IMU in the IMC::Acceleration and IMC Angular message. In order to get attitude and  from IMC EstimatedStates I have set MAV_DATA_STREAM_POSITION and MAV_DATA_STREAM_EXTRA1, to be requested at 50 Hz.

I have set the baudrate of the serial connection to 921600 , but im only receiving IMC::Acceleration, AngularVelocity and Estimated::States  in Neptus at 25 Hz.  I thought that the problem was due to the size the serial transmit buffer in the ArduPlane Firmware and modified it by setting it to 512 bytes instead of 256. This had no effect and im still stuck at 25hz.

Have you guys had any problems regarding this? 

João Fortuna

unread,
Feb 19, 2015, 7:12:34 AM2/19/15
to Bjørn Spockeli, lsts-to...@googlegroups.com
Hi,

I've pinpointed this issue to an ArduPilot code bug.
I haven't found a fix yet, but I'm working on it.

João

--
You received this message because you are subscribed to the Google Groups "LSTS Toolchain" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lsts-toolchai...@googlegroups.com.
Visit this group at http://groups.google.com/group/lsts-toolchain.
To view this discussion on the web visit https://groups.google.com/d/msgid/lsts-toolchain/947dfa87-02af-442e-8b02-76643c8d48a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

João Fortuna

unread,
Feb 19, 2015, 8:02:07 AM2/19/15
to Bjørn Spockeli, lsts-to...@googlegroups.com
Update: I've submitted a pull-request to diydrones' ardupilot git repository with the fix.
Reply all
Reply to author
Forward
0 new messages