Rover: obey AP_OPTICALFLOW_ENABLED

This commit is contained in:
Peter Barker 2022-01-05 22:13:40 +11:00 committed by Peter Barker
parent 81d205465c
commit 5a421c7eb3
1 changed files with 2 additions and 0 deletions

View File

@ -159,7 +159,9 @@ private:
AP_L1_Control L1_controller{ahrs, nullptr};
#if AP_OPTICALFLOW_ENABLED
OpticalFlow optflow;
#endif
#if OSD_ENABLED || OSD_PARAM_ENABLED
AP_OSD osd;