From ae34f3be3f57c83a593562f50085fb822c4e26de Mon Sep 17 00:00:00 2001 From: Charles Acknin <charles@skyways.com> Date: Tue, 8 Mar 2022 23:12:17 -0600 Subject: [PATCH] fix magfit_WMM.py --att-source arg handling --- tools/magfit_WMM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/magfit_WMM.py b/tools/magfit_WMM.py index 1e53891d..06de8926 100755 --- a/tools/magfit_WMM.py +++ b/tools/magfit_WMM.py @@ -287,7 +287,7 @@ def magfit(logfile): if args.att_source is not None: ATT_NAME = args.att_source - if parameters['AHRS_EKF_TYPE'] == 2: + elif parameters['AHRS_EKF_TYPE'] == 2: ATT_NAME = 'NKF1' elif parameters['AHRS_EKF_TYPE'] == 3: ATT_NAME = 'XKF1' -- GitLab