ekf2: scope HeightSensor enum

This commit is contained in:
bresch
2023-12-05 11:22:59 -05:00
committed by Daniel Agar
parent 6bd1145006
commit a3515a2474
8 changed files with 16 additions and 15 deletions
+2 -2
View File
@@ -407,7 +407,7 @@ public:
float getYawVar() const;
uint8_t getHeightSensorRef() const { return _height_sensor_ref; }
HeightSensor getHeightSensorRef() const { return _height_sensor_ref; }
#if defined(CONFIG_EKF2_AIRSPEED)
const auto &aid_src_airspeed() const { return _aid_src_airspeed; }
@@ -1139,7 +1139,7 @@ private:
// yaw_variance : yaw error variance (rad^2)
void resetQuatStateYaw(float yaw, float yaw_variance);
uint8_t _height_sensor_ref{HeightSensor::UNKNOWN};
HeightSensor _height_sensor_ref{HeightSensor::UNKNOWN};
uint8_t _position_sensor_ref{static_cast<uint8_t>(PositionSensor::GNSS)};
#if defined(CONFIG_EKF2_EXTERNAL_VISION)