Hello,
I am currently writing a litte program to fuse telemetry data from my ArduCopter with live video (early stage screenshot in attachment). However, I have noticed that many MAVLink messages contain evidently false values. Take, as an example, the attitude message. It contains Pitch/Roll/Yaw values and their respective speeds. Every few seconds, these values are zero or close to zero (e.g. 2.68604381370235e-36).
My question is: Are there checksums for the messages that I missed? Or does my arducopter indeed send these messages? If so, is there a failure in my IMU and does that explain the poor flying performance it recently shows? ;-)
Regards,
Nicolas
Tags: ArduCopter, EFIS, Ground station, Mavlink, OSD, Video
Permalink Reply by Andrew Radford on December 21, 2011 at 12:43pm There is only the one checksum for a Mavlink message - there is no other inside the payload if that's what you mean?
I assume you are actually discarding failed crc packets?
Permalink Reply by Nicolas Brieger on December 21, 2011 at 2:58pm Hey Andrew,
thanks for your reply!
It was my understanding that the discarding of failed crc packets was handled by the mavlink builtin function mavlink_parse_char (inside protocol.h)? There is explicitly a section inside which drops packets that fail the crc check (under the MAVLINK_PARSE_STATE_GOT_CRC1 case). The return value of this function is only true if a complete message could be decoded successfully and thats the only case where I inspect the payload.
Thus, I modify my original question: Does the official mavlink implementation handle the crc check and I have a hardware failure or do I have to explicitly do more checksum testing?
~Nicolas
Permalink Reply by Andrew Radford on December 21, 2011 at 6:09pm If you are using the generated implementation of mavlink then it should be - although I've no personal experience with the C version.
I've been writing a C#/.net version. I've got this working with silverlight, and have written as proof of concept a mavlink 'debugger' which allows easy inspection of mavlink logs. It may be of use to you. The website for this is here:
http://mavlinkpacketviewer.codeplex.com/
I've a test deployment here:
http://mandrolic.com/mavlink/MavlinkDebuggerTestPage.html
However what's in the repo is more recent.
Permalink Reply by Nicolas Brieger on December 23, 2011 at 4:03am Your project really looks interesting. I checked the logs generated by QGroundControl and today, they show other issues... I am coming to think that indeed my hardware is broken.
Thanks for your help, anyway!
Season Two of the Trust Time Trial (T3) Contest has now begun. The third round was a reliablilty/aerial photography round for both planes and copters, which is now closed. Stay tuned for the next round, beginning soon.59 members
19 members
28 members
114 members
94 members
© 2012 Created by Chris Anderson.
