Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airspeed plot disappeared for PX4 v1.10 (and earlier) #189

Closed
ThomasRigi opened this issue Apr 14, 2020 · 6 comments
Closed

Airspeed plot disappeared for PX4 v1.10 (and earlier) #189

ThomasRigi opened this issue Apr 14, 2020 · 6 comments

Comments

@ThomasRigi
Copy link
Member

Recently the plot for airspeed / groundspeed has disappeared on flightlogs using PX4 v1.10.2 and older. Here's a sample SITL log (flown with Gazebo's standard VTOL on v1.10.2) :
https://logs.px4.io/plot_app?log=7ea35ca1-e508-40c1-85be-5497b472b978

I believe it is this commit that introduced changes on which airspeed topic is plotted: bda9fc9
But I don't understand why it doesn't work. L343-346 should keep the compatibility I'd thought.

@jinchengde @bkueng can you look into this please? Thanks :)

@jinchengde
Copy link
Contributor

It looks like there is no "airspeed validated" topic in old version of log and crashed

jinchengde added a commit to jinchengde/flight_review that referenced this issue Apr 14, 2020
fix airspeed plot issue PX4#189
@ThomasRigi
Copy link
Member Author

ThomasRigi commented Apr 14, 2020

To my knowledge the "airspeed validated" topic only got introduced after v1.10.

When there is no "airspeed validated" topic, shouldn't the if clause at

if ulog.get_dataset('airspeed_validated') is not None:
trigger the else clause at
else:
data_plot.change_dataset('airspeed')
data_plot.add_graph(['indicated_airspeed_m_s'], colors8[1:2],
['Indicated Airspeed'])
? The "airspeed" topic is present in the old version. Still, there is no plot shown.

Edit: only seen after sending my comment that you have already opened a PR for this. Thanks!

@jinchengde
Copy link
Contributor

@ThomasRigi thanks to figure out this issue

bkueng pushed a commit that referenced this issue Apr 15, 2020
fix airspeed plot issue #189
@George-avy
Copy link

George-avy commented Jul 13, 2020

Hi! For some reason this fix doesn't work for me.
Even though my log contains the new airspeed_validated topic, indicated_airspeed is plotted, instead of equivalent_airspeed.
Weird...

Log:https://logs.px4.io/plot_app?log=4576ddfd-4cd4-4c63-a6b4-77df451bcc54#Nav-Airspeed

@bkueng
Copy link
Member

bkueng commented Jul 15, 2020

Yeah the check was simply incorrect. Fixed in 8112a22.

@bkueng bkueng closed this as completed Jul 15, 2020
@George-avy
Copy link

Ah, nice. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants