mirror of https://github.com/ArduPilot/ardupilot
Copter: fixed build with optflow disabled
This commit is contained in:
parent
2f0b1b3d9c
commit
cb5552f0e3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue