diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-14 15:17:06 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-14 15:17:06 +0100 |
commit | aeea27d16a6e7d92f7caf1c6a272a5f4bfa9a721 (patch) | |
tree | 52cb552b5be7e5f130bffd5385c13c423530b69e | |
parent | ffac5cba2fb91d30334c36b296a982686fcd166a (diff) | |
download | px4-firmware-aeea27d16a6e7d92f7caf1c6a272a5f4bfa9a721.tar.gz px4-firmware-aeea27d16a6e7d92f7caf1c6a272a5f4bfa9a721.tar.bz2 px4-firmware-aeea27d16a6e7d92f7caf1c6a272a5f4bfa9a721.zip |
Increased interface slightly to better match 200 Hz, adjusted led flash speed
-rw-r--r-- | apps/ardrone_interface/ardrone_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/ardrone_interface/ardrone_interface.c b/apps/ardrone_interface/ardrone_interface.c index f96d901fb..aeaf830de 100644 --- a/apps/ardrone_interface/ardrone_interface.c +++ b/apps/ardrone_interface/ardrone_interface.c @@ -340,7 +340,7 @@ int ardrone_interface_thread_main(int argc, char *argv[]) } } - if (counter % 16 == 0) { + if (counter % 24 == 0) { if (led_counter == 0) ar_set_leds(ardrone_write, 0, 1, 0, 0, 0, 0, 0 , 0); if (led_counter == 1) ar_set_leds(ardrone_write, 1, 1, 0, 0, 0, 0, 0 , 0); @@ -371,7 +371,7 @@ int ardrone_interface_thread_main(int argc, char *argv[]) } /* run at approximately 200 Hz */ - usleep(5000); + usleep(4500); counter++; } |