aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/safety.c
diff options
context:
space:
mode:
authorJulian Oes <joes@student.ethz.ch>2012-11-06 19:03:08 -0800
committerJulian Oes <joes@student.ethz.ch>2012-11-06 19:03:08 -0800
commit74f76006029ad6b209c1a409e8e35044b1c53bbb (patch)
tree9266ab3e8fd3fb51ef91a0970cc2b476fe46c2ee /apps/px4io/safety.c
parent7da799d154f6f3c5f0c1a92cbad4288f83c90650 (diff)
downloadpx4-firmware-74f76006029ad6b209c1a409e8e35044b1c53bbb.tar.gz
px4-firmware-74f76006029ad6b209c1a409e8e35044b1c53bbb.tar.bz2
px4-firmware-74f76006029ad6b209c1a409e8e35044b1c53bbb.zip
Again some hacking to make arming/disarming work for now
Diffstat (limited to 'apps/px4io/safety.c')
-rw-r--r--apps/px4io/safety.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/px4io/safety.c b/apps/px4io/safety.c
index f27432664..0ad636c0b 100644
--- a/apps/px4io/safety.c
+++ b/apps/px4io/safety.c
@@ -76,9 +76,9 @@ safety_check_button(void *arg)
/*
* Debounce the safety button, change state if it has been held for long enough.
*
- * Ignore the button if FMU has not said it's OK to arm yet.
*/
- if (BUTTON_SAFETY && system_state.arm_ok) {
+
+ if (BUTTON_SAFETY) {
if (arm_counter < ARM_COUNTER_THRESHOLD) {
arm_counter++;
} else if (arm_counter == ARM_COUNTER_THRESHOLD) {