mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 04:13:34 +08:00
Moved PWM ramp to systemlib
This commit is contained in:
@@ -2402,7 +2402,7 @@ px4io_main(int argc, char *argv[])
|
||||
/* set channel to commandline argument or to 900 for non-provided channels */
|
||||
if (argc > i + 2) {
|
||||
failsafe[i] = atoi(argv[i+2]);
|
||||
if (failsafe[i] < PWM_MIN || failsafe[i] > PWM_AX) {
|
||||
if (failsafe[i] < PWM_MIN || failsafe[i] > PWM_MAX) {
|
||||
errx(1, "value out of range of %d < value < %d. Aborting.", PWM_MIN, PWM_MAX);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user