From 05e921f5d0b45edb39abe29f819078602626725d Mon Sep 17 00:00:00 2001 From: Jason Short Date: Thu, 15 Dec 2011 16:09:44 -0800 Subject: [PATCH] More power to descend --- ArduCopter/Attitude.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/Attitude.pde b/ArduCopter/Attitude.pde index 3a51f2125e..078722148a 100644 --- a/ArduCopter/Attitude.pde +++ b/ArduCopter/Attitude.pde @@ -121,7 +121,7 @@ get_stabilize_yaw(int32_t target_angle) return (int)rate + iterm; } -#define ALT_ERROR_MAX 300 +#define ALT_ERROR_MAX 400 static int16_t get_nav_throttle(int32_t z_error) { @@ -143,7 +143,7 @@ get_nav_throttle(int32_t z_error) rate_error = rate_error - climb_rate; // limit the rate - rate_error = constrain((int)g.pi_throttle.get_pi(rate_error, .1), -120, 180); + rate_error = constrain((int)g.pi_throttle.get_pi(rate_error, .1), -160, 180); // output control: return rate_error + iterm;