Skip to content

Commit

Permalink
fix configured_plots: 'is_vtol_tailsitter' does not exist in older ve…
Browse files Browse the repository at this point in the history
…rsions
  • Loading branch information
bkueng committed Dec 9, 2023
1 parent f09d8ac commit 37f7034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/plot_app/configured_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def generate_plots(ulog, px4_ulog, db_data, vehicle_data, link_to_3d_page,
if np.amax(cur_dataset.data['is_vtol']) == 1:
is_vtol = True
# check if is tailsitter
is_vtol_tailsitter = np.amax(cur_dataset.data['is_vtol_tailsitter']) == 1
is_vtol_tailsitter = ('is_vtol_tailsitter' in cur_dataset.data and
np.amax(cur_dataset.data['is_vtol_tailsitter']) == 1)
# find mode after transitions (states: 1=transition, 2=FW, 3=MC)
if 'vehicle_type' in cur_dataset.data:
vehicle_type_field = 'vehicle_type'
Expand Down

0 comments on commit 37f7034

Please sign in to comment.