diff options
author | Julian Oes <julian@oes.ch> | 2013-10-31 10:29:06 +0100 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2013-10-31 10:29:06 +0100 |
commit | 25bf1abecffeb0b4c29386ef6a019b7a60c23899 (patch) | |
tree | 95d06500d28c056464c2ce922f41760e902e4a95 /src/drivers/drv_pwm_output.h | |
parent | 88351f3da178be1c73dad47557d894943e484e34 (diff) | |
download | px4-firmware-25bf1abecffeb0b4c29386ef6a019b7a60c23899.tar.gz px4-firmware-25bf1abecffeb0b4c29386ef6a019b7a60c23899.tar.bz2 px4-firmware-25bf1abecffeb0b4c29386ef6a019b7a60c23899.zip |
pwm_output: Allow PWM values from 900us to 2100us but use a default of 1000us to 2000us
Diffstat (limited to 'src/drivers/drv_pwm_output.h')
-rw-r--r-- | src/drivers/drv_pwm_output.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/drivers/drv_pwm_output.h b/src/drivers/drv_pwm_output.h index efd6afb4b..51f916f37 100644 --- a/src/drivers/drv_pwm_output.h +++ b/src/drivers/drv_pwm_output.h @@ -65,9 +65,14 @@ __BEGIN_DECLS #define PWM_OUTPUT_MAX_CHANNELS 16 /** - * Minimum PWM in us + * Lowest minimum PWM in us */ -#define PWM_MIN 900 +#define PWM_LOWEST_MIN 900 + +/** + * Default minimum PWM in us + */ +#define PWM_DEFAULT_MIN 1000 /** * Highest PWM allowed as the minimum PWM @@ -75,9 +80,14 @@ __BEGIN_DECLS #define PWM_HIGHEST_MIN 1300 /** - * Maximum PWM in us + * Highest maximum PWM in us + */ +#define PWM_HIGHEST_MAX 2100 + +/** + * Default maximum PWM in us */ -#define PWM_MAX 2100 +#define PWM_DEFAULT_MAX 2000 /** * Lowest PWM allowed as the maximum PWM |