PX4 / flight_review

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

Handle -inf in PSD plots #258

Closed duckythescientist closed 1 year ago

duckythescientist commented 1 year ago

In weird instances, if the raw values being used to create PSD plots are exactly constant, the PSD will have 0's which underflow when doing a log10 scale. This causes a failure when the JSON is deserialized. We replace -inf with the smallest finite number that's already in the PSD.