From 35ab667e7444a25c824ebd705955406721505b34 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 Aug 2022 11:31:14 +1000 Subject: [PATCH] RC_Channel: rename OpticalFlow class to AP_OpticalFlow Brings us in-line with other classes in ArduPilot. Removes ambiguity with AP_HAL::OpticalFlow which can cause compilation errors as we start to make code more portable across targets --- libraries/RC_Channel/RC_Channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 2256d6efda..f4813f6be7 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -1158,7 +1158,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos case AUX_FUNC::OPTFLOW_CAL: { #if AP_OPTICALFLOW_ENABLED - OpticalFlow *optflow = AP::opticalflow(); + AP_OpticalFlow *optflow = AP::opticalflow(); if (optflow == nullptr) { gcs().send_text(MAV_SEVERITY_CRITICAL, "OptFlow Cal: failed sensor not enabled"); break;