diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index 2339b528bf..e82b1f9fa1 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -573,7 +573,9 @@ static const ap_message STREAM_EXTRA3_msgs[] = { #if HAL_MOUNT_ENABLED MSG_GIMBAL_DEVICE_ATTITUDE_STATUS, #endif +#if AP_OPTICALFLOW_ENABLED MSG_OPTICAL_FLOW, +#endif #if COMPASS_CAL_ENABLED MSG_MAG_CAL_REPORT, MSG_MAG_CAL_PROGRESS,