Skip to content

Commit

Permalink
Add dialect option to mavloss.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryant authored and Andrew Tridgell committed Dec 2, 2014
1 parent f115f77 commit d3905f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymavlink/tools/mavloss.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
parser.add_argument("--planner", action='store_true', help="use planner file format")
parser.add_argument("--robust", action='store_true', help="Enable robust parsing (skip over bad data)")
parser.add_argument("--condition", default=None, help="condition for packets")
parser.add_argument("--dialect", default="ardupilotmega", help="MAVLink dialect")
parser.add_argument("logs", metavar="LOG", nargs="+")

args = parser.parse_args()
Expand All @@ -25,6 +26,7 @@ def mavloss(logfile):
mlog = mavutil.mavlink_connection(filename,
planner_format=args.planner,
notimestamps=args.notimestamps,
dialect=args.dialect,
robust_parsing=args.robust)

# Track the reasons for MAVLink parsing errors and print them all out at the end.
Expand Down

0 comments on commit d3905f1

Please sign in to comment.