MAVLink Bogus Messages

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

mavlinkpfd.png

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 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

  • 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?

This reply was deleted.

Activity

DIY Robocars via Twitter
Sep 9
DIY Robocars via Twitter
RT @chr1sa: We've got another virtual @DIYRobocars race tomorrow at 9:00am PT. Two dozen autonomous cars will compete, four at a time. Ther…
Sep 4
DIY Robocars via Twitter
Sep 1
DIY Robocars via Twitter
Aug 31
DIY Robocars via Twitter
Aug 31
DIY Robocars via Twitter
RT @ExplorerRobocar: Sometimes, I am really a big kid!! Having fun with my virtual RC car on the @diyrobocars track 😜😉, by using the « AR R…
Aug 24
DIY Robocars via Twitter
RT @grepLeigh: @donkey_car @unity3d @TensorFlow ~1050 episodes into training, my agent learned to erratically drive in the left lane. 🤖😆 ht…
Aug 24
DIY Robocars via Twitter
RT @EclipseCyclone: Sweet! http://Robotec.ai high performance #ROS 2 @unity3d #CycloneDDS bridge for @AutowareFdn @SVLSimulator now…
Aug 24
DIY Robocars via Twitter
RT @a1k0n: My car had a lot of trouble getting around the track at the last @diyrobocars event -- only one actual finished lap during the r…
Aug 24
DIY Robocars via Twitter
RT @SmallpixelCar: This is the run time map https://t.co/VzykOkUt2G
Aug 24
DIY Robocars via Twitter
RT @SmallpixelCar: Made a lot progress on Warm Spring Raceways track. Almost finished one lap. https://t.co/nUVpufZQyP
Aug 24
DIY Robocars via Twitter
RT @AntonioRobotics: Super fun time seeing these autonomous cars race at @circuitlaunch for the @diyrobocars quarterly meet up! The demolit…
Aug 15
DIY Robocars via Twitter
RT @a1k0n: I thought my dumb localization code was still working at the new @circuitlaunch track, but it was just *barely* working. I shoul…
Aug 14
DIY Robocars via Twitter
RT @DAVGtech: Recording of entire in person @diyrobocars race today @circuitlaunch. Fast forward a couple hours to go straight to the racin…
Aug 14
DIY Robocars via Twitter
RT @SmallpixelCar: This is the run time map. Very noisy Lidar signal https://t.co/bAbeVUMi10
Aug 14
DIY Robocars via Twitter
RT @SmallpixelCar: Today’s race with @a1k0n at @diyrobocars We both decided jumping over the wall was the way to break the 11s lap time. Th…
Aug 14
More…