Open rmackay9 opened 3 years ago
Sample log is here: https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_Logger/examples/AP_Logger_AllTypes
The NANS
message contains both nan and qnan values. ("b" meaning "bad" on the field name, I believe)
Although I'm not a huge fan of the behaviour, AP logs a "Quiet NaN" in cases where it does not have a value. The current example I'm looking at is Copter's CTUN.DSAlt field which is the "Desired Sonar Altitude" used for surface tracking.
I'm investigating a surface tracking failure and I can't tell if the NaN shown in this field is a result of a calculation error or the expected "Quiet NaN".
MAVProxy apparently displays "QNaN" for quiet NaN allowing them to be distinguished fro the calculation error NaNs and @peterbarker provided this code snippet:
I'll provide a sample log file to @meee1 directly.