Skip to content
Snippets Groups Projects
Commit ed0e09d1 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

Tools: fixes for extract_params.py

parent b043f151
Branches
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ p2 = mavparm.MAVParmDict()
p1.load(args.defaults)
p2.load(args.params)
include_list = [ 'Q_ENABLE', 'Q_FRAME*' ]
include_list = [ 'Q_ENABLE', 'Q_FRAME*', 'INS_HN*' ]
exclude_list = [ 'AHRS_TRIM*', 'RC[0-9]*', 'BARO*', 'INS*',
'COMPASS*', 'ARMING_*', '*DEVID', 'ARSPD_TYPE', 'ARSPD_RATIO',
'ADSB*', 'FLTMODE*', 'EK3*', 'ARSPD_PIN', 'ARSPD_USE', 'ARSPD_OPTIONS', '*WIND*',
......@@ -44,6 +44,6 @@ def vstring(v):
for p in p2:
if in_list(p, exclude_list) and not in_list(p, include_list):
continue
if not p in p1 or p1[p] == p2[p]:
if not p in p1 or (p1[p] == p2[p] and not in_list(p, include_list)):
continue
print("%-16s %s" % (p, vstring(p2[p])))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment