mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 02:48:28 -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
4ea9192ab8
commit
6728355889
@ -33,6 +33,7 @@ void calc_nav_throttle()
|
|||||||
pid_baro_throttle.kP(t/4.0);
|
pid_baro_throttle.kP(t/4.0);
|
||||||
}
|
}
|
||||||
// limit output of throttle control
|
// 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);
|
nav_throttle = throttle_cruise + constrain(nav_throttle, -20, 70);
|
||||||
pid_baro_throttle.kP(t);
|
pid_baro_throttle.kP(t);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user