From 020cc5978e3816c15c4f1071cc00e029e57d9504 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Fri, 12 Feb 2016 14:27:25 +1100 Subject: [PATCH] EKF: Move calculation of declination into a separate function --- EKF/control.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EKF/control.cpp b/EKF/control.cpp index ae34a76504..46cdb2a691 100644 --- a/EKF/control.cpp +++ b/EKF/control.cpp @@ -46,6 +46,9 @@ void Ekf::controlFusionModes() // Determine the vehicle status calculateVehicleStatus(); + // Get the magnetic declination + calcMagDeclination(); + // optical flow fusion mode selection logic _control_status.flags.opt_flow = false;