From 8268e27d49589e71b9c05cfdca33bd3d663d6284 Mon Sep 17 00:00:00 2001 From: lthall Date: Mon, 27 Jan 2014 16:07:02 +1030 Subject: [PATCH] Copter: ACRO further clean up --- ArduCopter/control_acro.pde | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArduCopter/control_acro.pde b/ArduCopter/control_acro.pde index 7daf27bcf8..4aa3b5de2b 100644 --- a/ArduCopter/control_acro.pde +++ b/ArduCopter/control_acro.pde @@ -71,8 +71,7 @@ static void get_pilot_desired_angle_rates(int16_t roll_in, int16_t pitch_in, int }else if (roll_angle < -aparm.angle_max) { rate_ef_level.x += g.pi_stabilize_roll.get_p(-aparm.angle_max-roll_angle); } - } - if (g.acro_trainer == ACRO_TRAINER_LIMITED) { + if (pitch_angle > aparm.angle_max){ rate_ef_level.y += g.pi_stabilize_pitch.get_p(aparm.angle_max-pitch_angle); }else if (pitch_angle < -aparm.angle_max) {