Simple PID controller class with output clamp
Diff: PIDcontroller.h
- Revision:
- 1:946d71f8afc6
- Parent:
- 0:070ecbe87363
- Child:
- 2:994ed695c8a5
--- a/PIDcontroller.h Tue Jul 04 19:21:16 2017 +0000 +++ b/PIDcontroller.h Wed Jul 05 20:30:07 2017 +0000 @@ -19,9 +19,9 @@ float target; float kp, ki, kd; - float integral,derivative; - float error,previous_error; - float outputMin,outputMax; + float integral, derivative; + float error, previous_error; + float outputMin, outputMax; Timer t; };