diff --git a/Rover/Rover.h b/Rover/Rover.h index 4eac85ade3..56e590df83 100644 --- a/Rover/Rover.h +++ b/Rover/Rover.h @@ -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;