AP_AHRS: move is_ext_nav_used_for_yaw to parent

This commit is contained in:
Randy Mackay 2020-03-27 16:32:00 +09:00
parent c0187fe05f
commit 24bb4876a8
2 changed files with 6 additions and 3 deletions

View File

@ -183,7 +183,10 @@ public:
// see if EKF lane switching is possible to avoid EKF failsafe
virtual void check_lane_switch(void) {}
// check whether external navigation is providing yaw. Allows compass pre-arm checks to be bypassed
virtual bool is_ext_nav_used_for_yaw(void) const { return false; }
// Euler angles (radians)
float roll;
float pitch;

View File

@ -280,8 +280,8 @@ public:
void Log_Write();
// check whether compass can be bypassed for arming check in case when external navigation data is available
bool is_ext_nav_used_for_yaw(void) const;
// check whether external navigation is providing yaw. Allows compass pre-arm checks to be bypassed
bool is_ext_nav_used_for_yaw(void) const override;
// these are only out here so vehicles can reference them for parameters
#if HAL_NAVEKF2_AVAILABLE