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 7535c1c3fe
commit b907c1fd5c
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);
}