From 30ba313829fcec13f6f22f8d3ae6c4d63b6e08f4 Mon Sep 17 00:00:00 2001 From: jasonshort Date: Fri, 11 Feb 2011 22:14:06 +0000 Subject: [PATCH] Fixed alt hold git-svn-id: https://arducopter.googlecode.com/svn/trunk@1631 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/flight_control.pde | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduCopterMega/flight_control.pde b/ArduCopterMega/flight_control.pde index 3596b59322..ef3e50a3ef 100644 --- a/ArduCopterMega/flight_control.pde +++ b/ArduCopterMega/flight_control.pde @@ -33,6 +33,7 @@ void calc_nav_throttle() pid_baro_throttle.kP(t/4.0); } // limit output of throttle control + nav_throttle = pid_baro_throttle.get_pid(error, delta_ms_fast_loop, 1.0); nav_throttle = throttle_cruise + constrain(nav_throttle, -20, 70); pid_baro_throttle.kP(t);