From 9fabdb5797de36a2d59814ac50dd2db3745a42b0 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 20 Feb 2012 00:24:10 +0900 Subject: [PATCH] TradHeli - change throttle range back to 0~1000 (was temporarily changed to be 1250~850 which limited the range of the swash plate's vertical movements) --- ArduCopter/radio.pde | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ArduCopter/radio.pde b/ArduCopter/radio.pde index d119b3e76a..7e9ec6de27 100644 --- a/ArduCopter/radio.pde +++ b/ArduCopter/radio.pde @@ -22,7 +22,12 @@ static void init_rc_in() // set rc channel ranges g.rc_1.set_angle(4500); g.rc_2.set_angle(4500); - g.rc_3.set_range(MINIMUM_THROTTLE, MAXIMUM_THROTTLE); + #if FRAME_CONFIG == HELI_FRAME + // we do not want to limit the movment of the heli's swash plate + g.rc_3.set_range(0, 1000); + #else + g.rc_3.set_range(MINIMUM_THROTTLE, MAXIMUM_THROTTLE); + #endif g.rc_4.set_angle(4500); // reverse: CW = left @@ -32,13 +37,6 @@ static void init_rc_in() g.rc_2.set_type(RC_CHANNEL_ANGLE_RAW); g.rc_4.set_type(RC_CHANNEL_ANGLE_RAW); - // set rc dead zones - /*g.rc_1.dead_zone = 60; - g.rc_2.dead_zone = 60; - g.rc_3.dead_zone = 60; - g.rc_4.dead_zone = 300; - */ - //set auxiliary ranges g.rc_5.set_range(0,1000); g.rc_6.set_range(0,1000);