mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: add ch_of_mot lookup to motors.pde
This commit is contained in:
parent
7535c1c3fe
commit
b907c1fd5c
|
@ -142,3 +142,18 @@ set_servos_4()
|
|||
output_motors_disarmed();
|
||||
}
|
||||
}
|
||||
|
||||
int ch_of_mot( int mot ) {
|
||||
switch (mot) {
|
||||
case 1: return MOT_1;
|
||||
case 2: return MOT_2;
|
||||
case 3: return MOT_3;
|
||||
case 4: return MOT_4;
|
||||
case 5: return MOT_5;
|
||||
case 6: return MOT_6;
|
||||
case 7: return MOT_7;
|
||||
case 8: return MOT_8;
|
||||
}
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue