mirror of https://github.com/ArduPilot/ardupilot
Copter: remove meaningless check from motor_test
This commit is contained in:
parent
0c7a3f1ec5
commit
e75d6a2da6
|
@ -36,7 +36,7 @@ static void motor_test_output()
|
|||
|
||||
case MOTOR_TEST_THROTTLE_PERCENT:
|
||||
// sanity check motor_test_throttle value
|
||||
if (motor_test_throttle_value >= 0 || motor_test_throttle_value <= 100) {
|
||||
if (motor_test_throttle_value <= 100) {
|
||||
pwm = g.rc_3.radio_min + (g.rc_3.radio_max - g.rc_3.radio_min) * (float)motor_test_throttle_value/100.0f;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue