Skip to content

Commit

Permalink
mavflightview.py: correct mapping of XKF1[100]
Browse files Browse the repository at this point in the history
.... and any instance with more than one digit....
  • Loading branch information
peterbarker committed Jun 28, 2024
1 parent 6bd0450 commit 14e77b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MAVProxy/tools/mavflightview.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def mavflightview_mav(mlog, options=None, flightmode_selections=[]):
want_instances = {}
recv_match_types = types[:]
for i in range(len(recv_match_types)):
match = re.match('(?P<name>.*)\[(?P<instancenum>[^\]+])\]', recv_match_types[i])
match = re.match('(?P<name>.*)\[(?P<instancenum>[^\]]+)\]', recv_match_types[i])
if match is not None:
name = match.group("name")
number = match.group("instancenum")
Expand Down

0 comments on commit 14e77b1

Please sign in to comment.