mavparmdiff.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 '''
3 compare two MAVLink parameter files
4 '''
5 
6 from pymavlink import mavparm
7 
8 from argparse import ArgumentParser
9 parser = ArgumentParser(description=__doc__)
10 parser.add_argument("file1", metavar="FILE1")
11 parser.add_argument("file2", metavar="FILE2")
12 parser.add_argument("--full-diff",
13  help="include volatile and similar parameters",
14  default=True,
15  action='store_false',
16  dest='use_excludes')
17 args = parser.parse_args()
18 
19 file1 = args.file1
20 file2 = args.file2
21 
24 p1.load(file2, use_excludes=args.use_excludes)
25 p1.diff(file1, use_excludes=args.use_excludes)
26 


mavlink
Author(s): Lorenz Meier
autogenerated on Sun Jul 7 2019 03:22:07