From 9735684184277cd01f8357fa6f3bd1d56b65b6f1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 1 Nov 2019 16:11:17 +1100 Subject: [PATCH] AP_NavEKF2: use enum-class for RangeFinder Status --- libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp b/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp index d504e1d2f2..814dacc842 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp @@ -45,7 +45,7 @@ void NavEKF2_core::readRangeFinder(void) if (sensor == nullptr) { continue; } - if ((sensor->orientation() == ROTATION_PITCH_270) && (sensor->status() == RangeFinder::RangeFinder_Good)) { + if ((sensor->orientation() == ROTATION_PITCH_270) && (sensor->status() == RangeFinder::Status::Good)) { rngMeasIndex[sensorIndex] ++; if (rngMeasIndex[sensorIndex] > 2) { rngMeasIndex[sensorIndex] = 0;