From af5e69dc404d0b28aae9d23ac13e84a0c383d127 Mon Sep 17 00:00:00 2001
From: Randy Mackay <rmackay9@yahoo.com>
Date: Tue, 4 Jun 2013 15:23:50 +0900
Subject: [PATCH] Copter: remove throttle controller's ability to limit lean
 angle

---
 ArduCopter/Attitude.pde | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/ArduCopter/Attitude.pde b/ArduCopter/Attitude.pde
index 6a624a2fc..df00720b0 100644
--- a/ArduCopter/Attitude.pde
+++ b/ArduCopter/Attitude.pde
@@ -1020,10 +1020,6 @@ get_throttle_rate(float z_target_speed)
         set_throttle_out(g.throttle_cruise+output, true);
     }
 
-    // limit loiter & waypoint navigation from causing too much lean
-    // To-Do: ensure that this limit is cleared when this throttle controller is not running so that loiter is not left constrained for Position mode
-    wp_nav.set_angle_limit(4500 - constrain_float((z_rate_error - 100) * 10, 0, 3500));
-
     // update throttle cruise
     // TO-DO: this may not be correct because g.rc_3.servo_out has not been updated for this iteration
     if( z_target_speed == 0 ) {
-- 
GitLab