aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/px4fmu
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2014-10-09 15:35:18 +1100
committerAndrew Tridgell <tridge@samba.org>2014-10-30 08:44:00 +1100
commitdd23d0acbcce9f4c79e120ec782a522164a25d83 (patch)
treeea8c19c5e8698f1b56a52d0f7cfae4ccca675012 /src/drivers/px4fmu
parent2e33683630002aef5881734c96383685b7e8443f (diff)
downloadpx4-firmware-dd23d0acbcce9f4c79e120ec782a522164a25d83.tar.gz
px4-firmware-dd23d0acbcce9f4c79e120ec782a522164a25d83.tar.bz2
px4-firmware-dd23d0acbcce9f4c79e120ec782a522164a25d83.zip
drivers: allow forcing the safety switch on
This allows forcing the safety switch to the on position from software which stops the pwm outputs
Diffstat (limited to 'src/drivers/px4fmu')
-rw-r--r--src/drivers/px4fmu/fmu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp
index 122a3cd17..3d3e1b0eb 100644
--- a/src/drivers/px4fmu/fmu.cpp
+++ b/src/drivers/px4fmu/fmu.cpp
@@ -829,6 +829,7 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)
case PWM_SERVO_SET_ARM_OK:
case PWM_SERVO_CLEAR_ARM_OK:
case PWM_SERVO_SET_FORCE_SAFETY_OFF:
+ case PWM_SERVO_SET_FORCE_SAFETY_ON:
// these are no-ops, as no safety switch
break;