Skip to content

Commit eec0ab7

Browse files
AlexKlimajbkueng
authored andcommitted
Fix alt setpoints
1 parent 6336718 commit eec0ab7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/plot_app/configured_plots.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,9 @@ def generate_plots(ulog, px4_ulog, db_data, vehicle_data, link_to_3d_page,
194194
data_plot.add_graph(['baro_alt_meter'], colors8[1:2], ['Barometer Altitude'])
195195
data_plot.change_dataset('vehicle_global_position')
196196
data_plot.add_graph(['alt'], colors8[2:3], ['Fused Altitude Estimation'])
197-
# If there is no altitude setpoint and we don't check, the Y axis always starts at 0.
198197
data_plot.change_dataset('position_setpoint_triplet')
199-
if 'position_setpoint_triplet' in data and 'current' in data['position_setpoint_triplet']:
200-
current = data['position_setpoint_triplet']['current']
201-
if 'alt' in current and current['alt'] is not None:
202-
data_plot.add_circle(['current.alt'], [plot_config['mission_setpoint_color']],
203-
['Altitude Setpoint'])
198+
data_plot.add_circle(['current.alt'], [plot_config['mission_setpoint_color']],
199+
['Altitude Setpoint'])
204200
plot_flight_modes_background(data_plot, flight_mode_changes, vtol_states)
205201

206202
if data_plot.finalize() is not None: plots.append(data_plot)

0 commit comments

Comments
 (0)