aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-03-20 21:57:31 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-03-20 21:57:54 +0100
commitecec2d76d9217713c800a48f1be0a886af5bb517 (patch)
treefc841a1e98138fdaed9b5a450457b13026127604 /src/systemcmds
parent4f0f2b032940e9b98b334c623f483137d3d97b5d (diff)
downloadpx4-firmware-ecec2d76d9217713c800a48f1be0a886af5bb517.tar.gz
px4-firmware-ecec2d76d9217713c800a48f1be0a886af5bb517.tar.bz2
px4-firmware-ecec2d76d9217713c800a48f1be0a886af5bb517.zip
Allow a bit more flexibility of PWM range
Diffstat (limited to 'src/systemcmds')
-rw-r--r--src/systemcmds/esc_calib/esc_calib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/systemcmds/esc_calib/esc_calib.c b/src/systemcmds/esc_calib/esc_calib.c
index aee26680c..d74010553 100644
--- a/src/systemcmds/esc_calib/esc_calib.c
+++ b/src/systemcmds/esc_calib/esc_calib.c
@@ -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;