Skip to content

Commit

Permalink
Rate-limit navigator update rate
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Feb 22, 2017
1 parent 4bffb14 commit 6f30cc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/navigator/navigator_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6f30cc4

Please sign in to comment.