diff --git a/libraries/AP_NavEKF2/AP_NavEKF2.h b/libraries/AP_NavEKF2/AP_NavEKF2.h index f55cf50847..ac88420518 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2.h +++ b/libraries/AP_NavEKF2/AP_NavEKF2.h @@ -225,6 +225,9 @@ public: // this function should not have more than one client bool getLastYawResetAngle(float &yawAng); + // allow the enable flag to be set by Replay + void set_enable(bool enable) { _enable.set(enable); } + private: NavEKF2_core *core = nullptr; const AP_AHRS *_ahrs;