mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 17:23:33 +08:00
pwm_output: Allow PWM values from 900us to 2100us but use a default of 1000us to 2000us
This commit is contained in:
@@ -1985,7 +1985,7 @@ PX4IO::ioctl(file * /*filep*/, int cmd, unsigned long arg)
|
||||
/* TODO: we could go lower for e.g. TurboPWM */
|
||||
unsigned channel = cmd - PWM_SERVO_SET(0);
|
||||
|
||||
if ((channel >= _max_actuators) || (arg < PWM_MIN) || (arg > PWM_MAX)) {
|
||||
if ((channel >= _max_actuators) || (arg < PWM_LOWEST_MIN) || (arg > PWM_HIGHEST_MAX)) {
|
||||
ret = -EINVAL;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user