Plane: make optflow available to AHRS

This commit is contained in:
Andrew Tridgell 2015-01-03 11:09:02 +11:00
parent 70c2aeca42
commit 8f571f1225
1 changed files with 3 additions and 0 deletions

View File

@ -167,6 +167,9 @@ static void init_ardupilot()
ahrs.set_compass(&compass); ahrs.set_compass(&compass);
} }
} }
// make optflow available to libraries
ahrs.set_optflow(&optflow);
// Register mavlink_delay_cb, which will run anytime you have // Register mavlink_delay_cb, which will run anytime you have
// more than 5ms remaining in your call to hal.scheduler->delay // more than 5ms remaining in your call to hal.scheduler->delay