ArduPilot / MissionPlanner

Mission Planner Ground Control Station for ArduPilot (c# .net)
http://ardupilot.org/planner/
GNU General Public License v3.0
1.75k stars 2.38k forks source link

LogBrowser: FMTU scaling not respected for integers #2059

Open olliw42 opened 5 years ago

olliw42 commented 5 years ago

Issue details

I believe that the scaling factors provided via the FMTU fields are not respected for integer values.

Two examples:

It thus appears that the scaling factor is generally not taken into account for plotting integer data in the LogBrowser graph.

Version

MP 1.3.62

Platform

irrelevant I believe

Airframe type

irrelevant I believe

Hardware type

irrelevant I believe

Logs

easy to reproduce

meee1 commented 5 years ago

was your source a bin file or log file?

olliw42 commented 5 years ago

ah ... I actually never look at that ... I always see both on my disk and somehow got the impression they would be equal ... I believe I more usually select the .bin file, but I can't confirm

I will pay more attention to this and try both, and tell you ASAP

olliw42 commented 5 years ago

so, here some info to digest for you .bin logfile: www.olliw.eu/drop/michael-mp/2018-12-23_20-06-59.bin .log logfile: www.olliw.eu/drop/michael-mp/2018-12-23_20-06-59.log some pics highlighting some points www.olliw.eu/drop/michael-mp/michael-20183012-bcl-log-bin.jpg www.olliw.eu/drop/michael-mp/michael-20183012-bcl-log-log.jpg

in short, neither the .bin nor the .log show anything reasonable, albeit the BCL data in the .log looks perfectly fine

the logs should allow you to get to the bottom and check fixes

THX

EDIT: as mentioned, similar issue you can see for the mag

meee1 commented 5 years ago

the issue here is there are 2 systems in play. the storage format, and the display format. i do believe there are fundamental issues with the current implementation

The issue will be with the UNIT, FMTU and MULT messages

olliw42 commented 5 years ago

many thx for looking at it

I must admit however that I don't really understand your comment: You're saying that the UNIT, FMT and MULT fields in the ArduCopter code should be different? If so, what should they be, i.e., how should they be changed?

In my simple view the FMT clearly gives the storage format, but I have interpreted the UNIT and MULT entries to be indications to any "user" of the data such as a GCS of how the data should be plotted/interpreted. In that view it wouldn't be an ArduPilot-sided issue. That's why I issued here. Sorry if that was the wrong place.

rmackay9 commented 1 year ago

Similarly @bnsgeyer and I have noticed that the scaling is incorrect for the PM.load field. It is logged in deci-pecentages and the FMTU for the PM message says field 7 is "A" meaning it should be divided by 10 but it's not. image

image