mirror of https://github.com/ArduPilot/ardupilot
Rover: fix motor test for pilot passthrough of steering
This commit is contained in:
parent
b6033df457
commit
2e451eb2bc
|
@ -41,7 +41,7 @@ void Rover::motor_test_output()
|
|||
|
||||
case MOTOR_TEST_THROTTLE_PILOT:
|
||||
if ((AP_MotorsUGV::motor_test_order)motor_test_seq == AP_MotorsUGV::MOTOR_TEST_STEERING) {
|
||||
test_result = g2.motors.output_test_pct((AP_MotorsUGV::motor_test_order)motor_test_seq, channel_steer->get_control_in());
|
||||
test_result = g2.motors.output_test_pct((AP_MotorsUGV::motor_test_order)motor_test_seq, channel_steer->norm_input_dz() * 100.0f);
|
||||
} else {
|
||||
test_result = g2.motors.output_test_pct((AP_MotorsUGV::motor_test_order)motor_test_seq, channel_throttle->get_control_in());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue