mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
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
|
// 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
|
||||||
hal.scheduler->register_delay_callback(mavlink_delay_cb, 5);
|
hal.scheduler->register_delay_callback(mavlink_delay_cb, 5);
|
||||||
|
Loading…
Reference in New Issue
Block a user