Test of pmic GPA with filter

Dependencies:   mbed

Fork of nucf446-cuboid-balance1_strong by RT2_Cuboid_demo

PI_Cntrl.h

Committer:
rtlabor
Date:
2018-01-10
Revision:
1:2e118d67eeae
Parent:
0:15be70d21d7c
Child:
8:d68e177e2571

File content as of revision 1:2e118d67eeae:

class PI_Cntrl{
     public:
                    PI_Cntrl(float a,float b);
                    PI_Cntrl(float a,float b,float c);
                    PI_Cntrl(float a,float b,float c,float d);
         float operator()(float e){
         return doStep(e);
         }                    
        virtual     ~PI_Cntrl();
        void        reset(float);
        float       doStep(float);
    
    private:
    
        float Tn;
        float Kp;
        float Ts;
        float out_max;
        float out_min;
        float i_part_old;
        float del;
};