PX4 / flight_review

web application for flight log analysis & review
https://logs.px4.io/
BSD 3-Clause "New" or "Revised" License
202 stars 195 forks source link

Crazy large logging duration and flight time values affecting graph axes limits #222

Closed edbyy closed 3 years ago

edbyy commented 3 years ago

I am trying to analyze my flight data but the flight review tool shows astronomically large values for both the logging duration and flight time which in turn affects the graphs and makes it very difficult to analyze the data.

This is the first issue I see (the actual flight time is about 5 minutes): image

This causes the graphs to look like this, which is very clearly driven by the incorrect log duration values: image

However when I zoom in a crazy amount, everything looks fine: image

Does anyone know the cause of this issue/bug? I'm not sure if this is a problem on the flight review side or on PX4's side.

bkueng commented 3 years ago

This generally happens when a timestamp is invalid. So on the PX4 side. You can look at the raw data to find the topic (convert to csv or instrument pyulog).

edbyy commented 3 years ago

Thanks @bkueng that was indeed the issue, I dug into the firmware source code and was able to find the problem.

bkueng commented 3 years ago

I take it that was something in your code, and not upstream?

edbyy commented 3 years ago

Yes that's correct