Plane: fixed a bug with altitude drift in FBWB mode

not taking account of deadzone correctly
This commit is contained in:
Andrew Tridgell 2013-07-12 21:17:09 +10:00
parent cc57bfcf12
commit ea9ae31a7a

View File

@ -1164,7 +1164,7 @@ static void update_flight_mode(void)
nav_roll_cd = channel_roll->norm_input() * g.roll_limit_cd;
float elevator_input;
elevator_input = channel_pitch->norm_input();
elevator_input = channel_pitch->control_in / 4500.0f;
if (g.flybywire_elev_reverse) {
elevator_input = -elevator_input;