Read Mavlink messages from telemetry port

Hello everyone,

in my application I need to read mavlink packages coming out of the Pixhawk telemetry port directly with a PC in which is running a Java program: in some cases I can reconstruct the complete message and numbers I get make sense. In other cases I think I'm misunderstanding something in the values decoding: in particular I think I'm messing something about how the Pixhawk handles the floating numbers.

For example I want to read this package:

Metrics typically displayed on a HUD for fixed wing aircraft

Field NameTypeDescription

And what I notice is that the output values are very strange (i.e. heading is out of range all the times, floating numbers have extremely large values)

On the other hand, I can completely reconstruct this package:

The filtered global position (e.g. fused GPS and accelerometers). The position is in GPS-frame (right-handed, Z-up). It is designed as scaled integer message since the resolution of float is not sufficient.

Field NameTypeDescription

So what's the difference here? :(

The second strange thing I noticed is that not all the messages listed here http://mavlink.org/messages/common are sent out of the telemetry port (i.e. ESTIMATOR_STATUS #230) and, moreover, I found some msgId that are not present on this list (i.e #193).

Can someone give me some hints how to proceed and if there is some usefull documentation I may have not still found?

Thank you very much!!

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

Join diydrones

Email me when people reply –

Activity