diff --git a/ArduSub/system.cpp b/ArduSub/system.cpp index 7a731468b6..fad675a587 100644 --- a/ArduSub/system.cpp +++ b/ArduSub/system.cpp @@ -83,11 +83,6 @@ void Sub::init_ardupilot() AP::compass().set_log_bit(MASK_LOG_COMPASS); AP::compass().init(); -#if OPTFLOW == ENABLED - // make optflow available to AHRS - ahrs.set_optflow(&optflow); -#endif - // init Location class #if AP_TERRAIN_AVAILABLE && AC_TERRAIN Location::set_terrain(&terrain);