ArduCopter: remove optical flow pointer from AP_AHRS

Nothing was ever using it.
This commit is contained in:
Peter Barker 2021-05-28 13:16:30 +10:00 committed by Peter Barker
parent e141578376
commit 61f41803b9

View File

@ -106,11 +106,6 @@ void Copter::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);