aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/drv_pwm_output.h
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/drv_pwm_output.h
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/drv_pwm_output.h')
-rw-r--r--src/drivers/drv_pwm_output.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/drv_pwm_output.h b/src/drivers/drv_pwm_output.h
index f66ec7c95..6873f24b6 100644
--- a/src/drivers/drv_pwm_output.h
+++ b/src/drivers/drv_pwm_output.h
@@ -213,6 +213,9 @@ ORB_DECLARE(output_pwm);
/** make failsafe non-recoverable (termination) if it occurs */
#define PWM_SERVO_SET_TERMINATION_FAILSAFE _IOC(_PWM_SERVO_BASE, 25)
+/** force safety switch on (to enable use of safety switch) */
+#define PWM_SERVO_SET_FORCE_SAFETY_ON _IOC(_PWM_SERVO_BASE, 26)
+
/*
*
*