1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Flight/Actuator: Use dT in seconds. Forgot to change MaxAccel.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1825 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2010-10-01 14:37:03 +00:00 committed by peabody124
parent 0dfdad4fc4
commit d54c6bf0f8

View File

@ -265,7 +265,7 @@ float ProcessMixer(const int index, const float curve1, const float curve2,
//acceleration limit
float dt = result - lastFilteredResult[index];
float maxDt = mixerSettings->MaxAccel * (period / 1000);
float maxDt = mixerSettings->MaxAccel * period;
if(dt > maxDt) //we are accelerating too hard
{
result = lastFilteredResult[index] + maxDt;