diff options
author | px4dev <px4@purgatory.org> | 2013-01-25 22:58:33 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-25 22:58:33 -0800 |
commit | b46d05835b9ff55c1f21d37483202888eeea1656 (patch) | |
tree | bc0200d6a1a528058a94b9af8ecd815980eaf885 /apps/px4io/protocol.h | |
parent | 900b0d58ef62d1ff1406a312ac88317152f0312a (diff) | |
download | px4-firmware-b46d05835b9ff55c1f21d37483202888eeea1656.tar.gz px4-firmware-b46d05835b9ff55c1f21d37483202888eeea1656.tar.bz2 px4-firmware-b46d05835b9ff55c1f21d37483202888eeea1656.zip |
Implement settable failsafe values for PWM outputs.
By default in failsafe mode, PWM output pulses are not generated.
Diffstat (limited to 'apps/px4io/protocol.h')
-rw-r--r-- | apps/px4io/protocol.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/px4io/protocol.h b/apps/px4io/protocol.h index 39ee4c0b1..6dbe16229 100644 --- a/apps/px4io/protocol.h +++ b/apps/px4io/protocol.h @@ -100,7 +100,7 @@ #define PX4IO_P_STATUS_FLAGS_RC_DSM (1 << 4) /* DSM input is valid */ #define PX4IO_P_STATUS_FLAGS_RC_SBUS (1 << 5) /* SBUS input is valid */ #define PX4IO_P_STATUS_FLAGS_FMU_OK (1 << 6) /* controls from FMU are valid */ -#define PX4IO_P_STATUS_FLAGS_RAW_PPM (1 << 7) /* raw PPM from FMU is bypassing the mixer */ +#define PX4IO_P_STATUS_FLAGS_RAW_PWM (1 << 7) /* raw PWM from FMU is bypassing the mixer */ #define PX4IO_P_STATUS_FLAGS_MIXER_OK (1 << 8) /* mixer is OK */ #define PX4IO_P_STATUS_ALARMS 3 /* alarm flags - alarms latch, write 1 to a bit to clear it */ @@ -172,6 +172,9 @@ /* PWM output - overrides mixer */ #define PX4IO_PAGE_DIRECT_PWM 104 /* 0..CONFIG_ACTUATOR_COUNT-1 */ +/* PWM failsafe values - zero disables the output */ +#define PX4IO_PAGE_FAILSAFE_PWM 105 /* 0..CONFIG_ACTUATOR_COUNT-1 */ + /** * As-needed mixer data upload. * |