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
+1 -1
View File
@@ -155,7 +155,7 @@ void Ekf::controlBaroHeightFusion()
} else {
if (starting_conditions_passing) {
if (_params.height_sensor_ref == HeightSensor::BARO) {
if (_params.height_sensor_ref == static_cast<int32_t>(HeightSensor::BARO)) {
ECL_INFO("starting %s height fusion, resetting height", HGT_SRC_NAME);
_height_sensor_ref = HeightSensor::BARO;