aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers/drv_pwm_output.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2013-02-18 14:16:09 +1100
committerAndrew Tridgell <tridge@samba.org>2013-02-18 14:16:09 +1100
commit317515fb6a3d6e469681b53316d69c7669efdaf0 (patch)
tree8b7a08491c482c0d335e60b2c76a99ef68d4a60a /apps/drivers/drv_pwm_output.h
parent1670b8afe13ba6c845800228d1c8829aa1bf31c9 (diff)
downloadpx4-firmware-317515fb6a3d6e469681b53316d69c7669efdaf0.tar.gz
px4-firmware-317515fb6a3d6e469681b53316d69c7669efdaf0.tar.bz2
px4-firmware-317515fb6a3d6e469681b53316d69c7669efdaf0.zip
px4io: added INAIR_RESTART enable/disable flags
the autopilot code needs to know that in-air restart may happen, so it should be something that is enabled, rather than on by default.
Diffstat (limited to 'apps/drivers/drv_pwm_output.h')
-rw-r--r--apps/drivers/drv_pwm_output.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/drivers/drv_pwm_output.h b/apps/drivers/drv_pwm_output.h
index 64bb540b4..f3f753ebe 100644
--- a/apps/drivers/drv_pwm_output.h
+++ b/apps/drivers/drv_pwm_output.h
@@ -109,6 +109,12 @@ ORB_DECLARE(output_pwm);
/** set debug level for servo IO */
#define PWM_SERVO_SET_DEBUG _IOC(_PWM_SERVO_BASE, 4)
+/** enable in-air restart */
+#define PWM_SERVO_INAIR_RESTART_ENABLE _IOC(_PWM_SERVO_BASE, 5)
+
+/** disable in-air restart */
+#define PWM_SERVO_INAIR_RESTART_DISABLE _IOC(_PWM_SERVO_BASE, 6)
+
/** set a single servo to a specific value */
#define PWM_SERVO_SET(_servo) _IOC(_PWM_SERVO_BASE, 0x20 + _servo)