Skip to content

Commit

Permalink
pymavlink: fixed flightmode for DF files in mavextract.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Aug 17, 2016
1 parent 6769532 commit 20c884c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymavlink/tools/mavextract.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def process(filename):
# we don't use mlog.flightmode as that can be wrong if we are extracting a single link
if mtype == 'HEARTBEAT' and m.get_srcComponent() != mavutil.mavlink.MAV_COMP_ID_GIMBAL and m.type != mavutil.mavlink.MAV_TYPE_GCS:
flightmode = mavutil.mode_string_v10(m).upper()
if mtype == 'MODE':
flightmode = mlog.flightmode

if (isbin or islog) and m.get_type() in ["FMT", "PARM", "CMD"]:
file_header += m.get_msgbuf()
Expand Down

0 comments on commit 20c884c

Please sign in to comment.