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
@@ -114,7 +114,7 @@ enum TerrainFusionMask : uint8_t {
};
#endif // CONFIG_EKF2_TERRAIN
enum HeightSensor : uint8_t {
enum class HeightSensor : uint8_t {
BARO = 0,
GNSS = 1,
RANGE = 2,
@@ -277,7 +277,7 @@ struct parameters {
int32_t imu_ctrl{static_cast<int32_t>(ImuCtrl::GyroBias) | static_cast<int32_t>(ImuCtrl::AccelBias)};
// measurement source control
int32_t height_sensor_ref{HeightSensor::BARO};
int32_t height_sensor_ref{static_cast<int32_t>(HeightSensor::BARO)};
int32_t position_sensor_ref{static_cast<int32_t>(PositionSensor::GNSS)};
int32_t sensor_interval_max_ms{10}; ///< maximum time of arrival difference between non IMU sensor updates. Sets the size of the observation buffers. (mSec)