Fixed alt hold

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1631 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-02-11 22:14:06 +00:00
parent 89eaff17bc
commit 30ba313829

View File

@ -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);