Skip to content

Commit

Permalink
fix airspeed plot issue
Browse files Browse the repository at this point in the history
fix airspeed plot issue PX4#189
  • Loading branch information
jinchengde committed Apr 14, 2020
1 parent eaad23c commit 85ffcb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plot_app/configured_plots.py
Expand Up @@ -331,7 +331,7 @@ def generate_plots(ulog, px4_ulog, db_data, vehicle_data, link_to_3d_page,
data_plot.add_graph([lambda data: ('groundspeed_estimated',
np.sqrt(data['vel_n']**2 + data['vel_e']**2))],
colors8[0:1], ['Ground Speed Estimated'])
if ulog.get_dataset('airspeed_validated') is not None:
if 'airspeed_validated' in ulog.data_list:
airspeed_validated = ulog.get_dataset('airspeed_validated')
data_plot.change_dataset('airspeed_validated')
if np.amax(airspeed_validated.data['airspeed_sensor_measurement_valid']) == 1:
Expand Down

0 comments on commit 85ffcb6

Please sign in to comment.