Project Paint / Mbed 2 deprecated arm_control

Dependencies:   mbed QEI biquadFilter

PID_controller.h

Committer:
Jankoekenpan
Date:
2016-11-04
Revision:
29:1c5254b27851
Parent:
0:494acf21d3bc

File content as of revision 29:1c5254b27851:


class PIDController {
    private:
        float Kp;
        float Ki;
        float Kd;
        float previousError;
        float errorIntegral;
    public:
        PIDController(float Kp, float Ki, float Kd);
        float control(float error, float t);
    
};