mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Rate-limit navigator update rate
This commit is contained in:
parent
80e1064523
commit
3e88b2f2b1
@ -342,6 +342,9 @@ Navigator::task_main()
|
||||
|
||||
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) {
|
||||
|
||||
/* wait for up to 200ms for data */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user