mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 12:33:33 +08:00
EKF: Move calculation of declination into a separate function
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user