mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Motors: Change to pass-through
This commit is contained in:
parent
bbd9148b4b
commit
1f5b88cf3b
@ -224,27 +224,17 @@ void AP_MotorsCoax::_output_test_seq(uint8_t motor_seq, int16_t pwm)
|
|||||||
switch (motor_seq) {
|
switch (motor_seq) {
|
||||||
case 1:
|
case 1:
|
||||||
// flap servo 1
|
// flap servo 1
|
||||||
rc_write(AP_MOTORS_MOT_1, pwm);
|
|
||||||
break;
|
|
||||||
case 2:
|
case 2:
|
||||||
// flap servo 2
|
// flap servo 2
|
||||||
rc_write(AP_MOTORS_MOT_2, pwm);
|
|
||||||
break;
|
|
||||||
case 3:
|
case 3:
|
||||||
// flap servo 3
|
// flap servo 3
|
||||||
rc_write(AP_MOTORS_MOT_3, pwm);
|
|
||||||
break;
|
|
||||||
case 4:
|
case 4:
|
||||||
// flap servo 4
|
// flap servo 4
|
||||||
rc_write(AP_MOTORS_MOT_4, pwm);
|
|
||||||
break;
|
|
||||||
case 5:
|
case 5:
|
||||||
// motor 1
|
// motor 1
|
||||||
rc_write(AP_MOTORS_MOT_5, pwm);
|
|
||||||
break;
|
|
||||||
case 6:
|
case 6:
|
||||||
// motor 2
|
// motor 2
|
||||||
rc_write(AP_MOTORS_MOT_6, pwm);
|
rc_write(motor_seq - 1u, pwm);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// do nothing
|
// do nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user