Copter: fixed flymaple build

This commit is contained in:
Andrew Tridgell 2015-01-05 07:36:40 +11:00
parent b499cd1b59
commit c268d7252f

View File

@ -96,7 +96,9 @@ test_compass(uint8_t argc, const Menu::arg *argv)
ahrs.init(); ahrs.init();
ahrs.set_fly_forward(true); ahrs.set_fly_forward(true);
ahrs.set_compass(&compass); ahrs.set_compass(&compass);
#if OPTFLOW == ENABLED
ahrs.set_optflow(&optflow); ahrs.set_optflow(&optflow);
#endif
report_compass(); report_compass();
// we need the AHRS initialised for this test // we need the AHRS initialised for this test