mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 10:50:19 +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;
|
||||
|
||||
/* 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 */
|
||||
|
||||
Reference in New Issue
Block a user