Skip to content

Commit

Permalink
MAVExplorer.py: CMD does not count as a line when determining colour …
Browse files Browse the repository at this point in the history
…source

so if you "map POS CMD" you will still get the mode colours for the vehicle location
  • Loading branch information
peterbarker committed Sep 27, 2024
1 parent 28e82ea commit 77a77f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MAVProxy/tools/MAVExplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,10 @@ def cmd_map(args):
options._flightmodes = mestate.mlog._flightmodes
options.show_flightmode_legend = mestate.settings.show_flightmode
options.colour_source='flightmode'
options.nkf_sample = 1
if len(args) > 0:
options.types = ':'.join(args)
if len(options.types) > 1:
filtered_args = list(filter(lambda x : x != "CMD", options.types))
if len(filtered_args) > 1:
options.colour_source='type'
mfv_mav_ret = mavflightview.mavflightview_mav(mestate.mlog, options, mestate.flightmode_selections)
if mfv_mav_ret is None:
Expand Down

0 comments on commit 77a77f5

Please sign in to comment.