Browse Source

AP_AHRS: move is_ext_nav_used_for_yaw to parent

zr-v5.1
Randy Mackay 5 years ago
parent
commit
24bb4876a8
  1. 5
      libraries/AP_AHRS/AP_AHRS.h
  2. 4
      libraries/AP_AHRS/AP_AHRS_NavEKF.h

5
libraries/AP_AHRS/AP_AHRS.h

@ -183,7 +183,10 @@ public: @@ -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;

4
libraries/AP_AHRS/AP_AHRS_NavEKF.h

@ -280,8 +280,8 @@ public: @@ -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

Loading…
Cancel
Save