mirror of https://github.com/ArduPilot/ardupilot
RC_Channel: add and use AP_OPTICALFLOW_CALIBRATOR_ENABLED
This commit is contained in:
parent
8416730a8c
commit
36ffe42f01
|
@ -1430,7 +1430,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos
|
|||
}
|
||||
break;
|
||||
|
||||
#if AP_OPTICALFLOW_ENABLED
|
||||
#if AP_OPTICALFLOW_CALIBRATOR_ENABLED
|
||||
case AUX_FUNC::OPTFLOW_CAL: {
|
||||
AP_OpticalFlow *optflow = AP::opticalflow();
|
||||
if (optflow == nullptr) {
|
||||
|
|
Loading…
Reference in New Issue