mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 00:03:33 +08:00
Allow a bit more flexibility of PWM range
This commit is contained in:
@@ -168,8 +168,13 @@ esc_calib_main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (set_mask == 0)
|
||||
if (set_mask == 0) {
|
||||
usage("no channels chosen");
|
||||
}
|
||||
|
||||
if (pwm_low > pwm_high) {
|
||||
usage("low pwm is higher than high pwm");
|
||||
}
|
||||
|
||||
/* make sure no other source is publishing control values now */
|
||||
struct actuator_controls_s actuators;
|
||||
|
||||
Reference in New Issue
Block a user