diff options
author | Julian Oes <joes@student.ethz.ch> | 2012-11-15 11:57:55 -0800 |
---|---|---|
committer | Julian Oes <joes@student.ethz.ch> | 2012-11-15 11:57:55 -0800 |
commit | e9acc18df4e4d870ca20d10e100a132cf4a15631 (patch) | |
tree | 1c4fbe5399b36143e9713578414aed734c1b4ae0 /apps/px4io | |
parent | 33e750602ab384069b08ca17ca6589c08177f7a6 (diff) | |
download | px4-firmware-e9acc18df4e4d870ca20d10e100a132cf4a15631.tar.gz px4-firmware-e9acc18df4e4d870ca20d10e100a132cf4a15631.tar.bz2 px4-firmware-e9acc18df4e4d870ca20d10e100a132cf4a15631.zip |
Lowered arm button prelling
Diffstat (limited to 'apps/px4io')
-rw-r--r-- | apps/px4io/safety.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/px4io/safety.c b/apps/px4io/safety.c index 2a087705a..24fc9951a 100644 --- a/apps/px4io/safety.c +++ b/apps/px4io/safety.c @@ -58,7 +58,7 @@ static struct hrt_call arming_call; */ static unsigned counter; -#define ARM_COUNTER_THRESHOLD 20 +#define ARM_COUNTER_THRESHOLD 10 #define DISARM_COUNTER_THRESHOLD 2 static bool safety_led_state; @@ -68,8 +68,8 @@ static void safety_check_button(void *arg); void safety_init(void) { - /* arrange for the button handler to be called at 20Hz */ - hrt_call_every(&arming_call, 1000, 50000, safety_check_button, NULL); + /* arrange for the button handler to be called at 10Hz */ + hrt_call_every(&arming_call, 1000, 100000, safety_check_button, NULL); } static void |