mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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
This commit is contained in:
parent
cd98fcec87
commit
35ab667e74
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user