mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
Fixed alt hold
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1631 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
89eaff17bc
commit
30ba313829
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user