aboutsummaryrefslogtreecommitdiff
path: root/src/modules/bottle_drop
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-09-11 01:06:30 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-09-11 01:06:30 +0200
commit6791ab72a910b00818026ac60d95d8df20bfa0d3 (patch)
treef1b0bd3850cdacf4c8461aa8f4fb355c8d6334d4 /src/modules/bottle_drop
parent1512bf727c7ad19400fc4777fbccce7b6e951437 (diff)
downloadpx4-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.cpp4
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;