ArduCopter: add ch_of_mot lookup to motors.pde

This commit is contained in:
Pat Hickey 2012-01-01 15:46:32 -05:00
parent 87735fef24
commit b8b6e3c25b
1 changed files with 15 additions and 0 deletions

View File

@ -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);
}