Matthias Grob
/
FlyBed2
My fully self designed first stable working Quadrocopter Software.
Diff: PID/PID.cpp
- Revision:
- 5:06e978fd147a
- Parent:
- 2:03e5f7ab473f
- Child:
- 7:ac2895479e34
--- a/PID/PID.cpp Sat Feb 15 14:28:11 2014 +0000 +++ b/PID/PID.cpp Sun Jul 06 05:51:25 2014 +0000 @@ -25,7 +25,7 @@ float Error = Angle - DesiredAngle; // Integral - if (dt > 2 || !Integrate) // Todo: 2 secs is the maximal time between two computations + if (dt > 2 || !Integrate) // TODO: 2 secs is the maximal time between two computations Integral = 0; else if (abs(Integral + Error) <= Integral_Max) Integral += Error * dt;