Allow a bit more flexibility of PWM range

This commit is contained in:
Lorenz Meier
2015-03-20 21:57:54 +01:00
parent 4f0f2b0329
commit ecec2d76d9
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -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;