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

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