mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
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:
|
case MOTOR_TEST_THROTTLE_PERCENT:
|
||||||
// sanity check motor_test_throttle value
|
// 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;
|
pwm = g.rc_3.radio_min + (g.rc_3.radio_max - g.rc_3.radio_min) * (float)motor_test_throttle_value/100.0f;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user