TradHeli: set throttle_min to zero by default

This commit is contained in:
Randy Mackay 2013-11-10 20:29:26 +09:00
parent 81fc24586e
commit 0f67e25d37
2 changed files with 1 additions and 5 deletions

View File

@ -115,6 +115,7 @@
# define MPU6K_FILTER 10
# define HELI_STAB_COLLECTIVE_MIN_DEFAULT 0
# define HELI_STAB_COLLECTIVE_MAX_DEFAULT 1000
# define THR_MIN_DEFAULT 0
#endif
/////////////////////////////////////////////////////////////////////////////////

View File

@ -23,12 +23,7 @@ static void init_rc_in()
// set rc channel ranges
g.rc_1.set_angle(ROLL_PITCH_INPUT_MAX);
g.rc_2.set_angle(ROLL_PITCH_INPUT_MAX);
#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(g.throttle_min, g.throttle_max);
#endif
g.rc_4.set_angle(4500);
g.rc_1.set_type(RC_CHANNEL_TYPE_ANGLE_RAW);