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

Partially verified

This commit is signed with the committer’s verified signature.
ruyadorno’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
1 parent 7900f50 commit 9434399
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
@@ -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

0 comments on commit 9434399

Please sign in to comment.