Merge Crazyflie motor driver with FMU

Comment corrections
This commit is contained in:
Dennis Shtatnov
2016-09-04 19:12:08 +02:00
committed by Lorenz Meier
parent e6b98b2ab8
commit e91821d2a2
16 changed files with 159 additions and 1201 deletions
+5 -1
View File
@@ -159,7 +159,11 @@ esc_calib_main(int argc, char *argv[])
/* Read in custom low value */
pwm_low = strtoul(myoptarg, &ep, 0);
if (*ep != '\0' || pwm_low < PWM_LOWEST_MIN || pwm_low > PWM_HIGHEST_MIN) {
if (*ep != '\0'
#if PWM_LOWEST_MIN > 0
|| pwm_low < PWM_LOWEST_MIN
#endif
|| pwm_low > PWM_HIGHEST_MIN) {
usage("low PWM invalid");
return 1;
}