From b907c1fd5ccacb6483887e9005aeee20e5dd0d9d Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Sun, 1 Jan 2012 15:46:32 -0500 Subject: [PATCH] ArduCopter: add ch_of_mot lookup to motors.pde --- ArduCopter/motors.pde | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ArduCopter/motors.pde b/ArduCopter/motors.pde index 7a427e6903..7c05c0b400 100644 --- a/ArduCopter/motors.pde +++ b/ArduCopter/motors.pde @@ -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); +} +