Skip to content

Commit

Permalink
MAVExplorer: allow VEH msg to behave like GPS
Browse files Browse the repository at this point in the history
so "map VEH" works with dual-vehicle logs
  • Loading branch information
tridge committed Feb 27, 2024
1 parent 7900f50 commit 1d0f6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MAVProxy/tools/mavflightview.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ def mavflightview_mav(mlog, options=None, flightmode_selections=[]):
# may only be present for colour-source expressions to work
continue

if type == 'GPS' and hasattr(m,'I'):
type = 'GPS[%u]' % m.I
if type in ['GPS','VEH'] and hasattr(m,'I'):
type = '%s[%u]' % (type, m.I)

if not all_false and len(flightmode_selections) > 0 and idx < len(options._flightmodes) and m._timestamp >= options._flightmodes[idx][2]:
idx += 1
Expand Down

0 comments on commit 1d0f6cf

Please sign in to comment.