From 11b372a9868c2d70dd5b6b8308f7f6bfbf96a227 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 1 Nov 2019 16:11:26 +1100 Subject: [PATCH] AP_NavEKF3: use enum-class for RangeFinder Status --- libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp b/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp index f77cf3ca4c..0af6fcbd63 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp @@ -41,7 +41,7 @@ void NavEKF3_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;