mavparmdiff.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 '''
00003 compare two MAVLink parameter files
00004 '''
00005 
00006 import sys, os
00007 
00008 from pymavlink import mavutil, mavparm
00009 
00010 from argparse import ArgumentParser
00011 parser = ArgumentParser(description=__doc__)
00012 parser.add_argument("file1", metavar="FILE1")
00013 parser.add_argument("file2", metavar="FILE2")
00014 args = parser.parse_args()
00015 
00016 file1 = args.file1
00017 file2 = args.file2
00018 
00019 p1 = mavparm.MAVParmDict()
00020 p2 = mavparm.MAVParmDict()
00021 p1.load(file2)
00022 p1.diff(file1)
00023 


mavlink
Author(s): Lorenz Meier
autogenerated on Thu Jun 6 2019 19:01:57