From ed0e09d1df723b0a20bf3953cd3f4157fe97051b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <andrew@tridgell.net> Date: Thu, 5 May 2022 17:50:50 +1000 Subject: [PATCH] Tools: fixes for extract_params.py --- tools/extract_parms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/extract_parms.py b/tools/extract_parms.py index 1531b3cc..bb8b2710 100755 --- a/tools/extract_parms.py +++ b/tools/extract_parms.py @@ -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]))) -- GitLab