From c95ff4b82b76f57925bef5b4c8f942fc9a2d26b9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 Aug 2022 11:31:14 +1000 Subject: [PATCH] AP_MSP: 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/AP_MSP/AP_MSP_Telem_Backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp b/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp index 9ac6c06b7a..4495d325f8 100644 --- a/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp +++ b/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp @@ -527,7 +527,7 @@ MSPCommandResult AP_MSP_Telem_Backend::msp_process_sensor_command(uint16_t cmd_m void AP_MSP_Telem_Backend::msp_handle_opflow(const MSP::msp_opflow_data_message_t &pkt) { #if HAL_MSP_OPTICALFLOW_ENABLED - OpticalFlow *optflow = AP::opticalflow(); + AP_OpticalFlow *optflow = AP::opticalflow(); if (optflow == nullptr) { return; }