Run faster for better accuracy.

This commit is contained in:
Lorenz Meier 2014-09-11 01:06:30 +02:00
parent 1512bf727c
commit 6791ab72a9
1 changed files with 2 additions and 2 deletions

View File

@ -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;