Copter: fixed build with optflow disabled

This commit is contained in:
Andrew Tridgell 2015-01-04 12:29:22 +11:00
parent 2f0b1b3d9c
commit cb5552f0e3
1 changed files with 2 additions and 0 deletions

View File

@ -216,8 +216,10 @@ static void init_ardupilot()
if(g.compass_enabled)
init_compass();
#if OPTFLOW == ENABLED
// make optflow available to AHRS
ahrs.set_optflow(&optflow);
#endif
// initialise attitude and position controllers
attitude_control.set_dt(MAIN_LOOP_SECONDS);