diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-09-11 01:06:30 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-09-11 01:06:30 +0200 |
commit | 6791ab72a910b00818026ac60d95d8df20bfa0d3 (patch) | |
tree | f1b0bd3850cdacf4c8461aa8f4fb355c8d6334d4 /src/modules/bottle_drop | |
parent | 1512bf727c7ad19400fc4777fbccce7b6e951437 (diff) | |
download | px4-firmware-6791ab72a910b00818026ac60d95d8df20bfa0d3.tar.gz px4-firmware-6791ab72a910b00818026ac60d95d8df20bfa0d3.tar.bz2 px4-firmware-6791ab72a910b00818026ac60d95d8df20bfa0d3.zip |
Run faster for better accuracy.
Diffstat (limited to 'src/modules/bottle_drop')
-rw-r--r-- | src/modules/bottle_drop/bottle_drop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/bottle_drop/bottle_drop.cpp b/src/modules/bottle_drop/bottle_drop.cpp index 128e40619..53071630d 100644 --- a/src/modules/bottle_drop/bottle_drop.cpp +++ b/src/modules/bottle_drop/bottle_drop.cpp @@ -463,7 +463,7 @@ BottleDrop::task_main() continue; } - const unsigned sleeptime_us = 50000; + const unsigned sleeptime_us = 9500; hrt_abstime last_run = hrt_absolute_time(); float dt_runs = sleeptime_us / 1e6f; @@ -684,7 +684,7 @@ BottleDrop::task_main() // update_actuators(); - // run at roughly 20 Hz + // run at roughly 100 Hz usleep(sleeptime_us); dt_runs = hrt_elapsed_time(&last_run) / 1e6f; |