mirror of https://github.com/ArduPilot/ardupilot
Plane: make optflow available to AHRS
This commit is contained in:
parent
70c2aeca42
commit
8f571f1225
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue