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
@@ -136,7 +136,7 @@ void Ekf::controlGnssHeightFusion(const gpsSample &gps_sample)
} else {
if (starting_conditions_passing) {
if (_params.height_sensor_ref == HeightSensor::GNSS) {
if (_params.height_sensor_ref == static_cast<int32_t>(HeightSensor::GNSS)) {
ECL_INFO("starting %s height fusion, resetting height", HGT_SRC_NAME);
_height_sensor_ref = HeightSensor::GNSS;