mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-21 23:30:35 +08:00
Rate-limit navigator update rate
This commit is contained in:
@@ -342,6 +342,9 @@ Navigator::task_main()
|
|||||||
|
|
||||||
bool global_pos_available_once = false;
|
bool global_pos_available_once = false;
|
||||||
|
|
||||||
|
/* rate-limit global pos subscription to 20 Hz / 50 ms */
|
||||||
|
orb_set_interval(_global_pos_sub, 49);
|
||||||
|
|
||||||
while (!_task_should_exit) {
|
while (!_task_should_exit) {
|
||||||
|
|
||||||
/* wait for up to 200ms for data */
|
/* wait for up to 200ms for data */
|
||||||
|
|||||||
Reference in New Issue
Block a user