diff --git a/ArduCopter/Copter.h b/ArduCopter/Copter.h index fdf990c16b..b6ae3b09b2 100644 --- a/ArduCopter/Copter.h +++ b/ArduCopter/Copter.h @@ -199,7 +199,7 @@ private: // Optical flow sensor #if OPTFLOW == ENABLED - OpticalFlow optflow; + OpticalFlow optflow{ahrs}; #endif // gnd speed limit required to observe optical flow sensor limits