EKF: Move calculation of declination into a separate function

This commit is contained in:
Paul Riseborough
2016-02-14 22:01:53 +01:00
committed by Roman
parent aa58b3e98c
commit 020cc5978e
+3
View File
@@ -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;