1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Flight/Stabilization: Make any throttle < 0 reset the pid integral windup

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1933 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2010-10-10 00:46:06 +00:00 committed by peabody124
parent 5f601bf5ab
commit dc10998152

View File

@ -210,7 +210,7 @@ static void stabilizationTask(void* parameters)
}
if(manualControl.Armed == MANUALCONTROLCOMMAND_ARMED_FALSE ||
!shouldUpdate)
!shouldUpdate || (attitudeDesired.Throttle < 0))
{
ZeroPids();
}