pid
Fork of PID by
PID.h
- Committer:
- kikoaac
- Date:
- 2015-06-19
- Revision:
- 1:aac6180820a4
- Parent:
- 0:6e12a3e5af19
- Child:
- 2:14176355508a
File content as of revision 1:aac6180820a4:
#ifndef PID_H #define PID_H #include "mbed.h" class PID { public: PID(float tauKc, float tauKi, float tauKd); void PIDctrl(void); void start(); void setInterval(double inter); //Getters. void stop(); double dTarget; double dPoint; // PI制御ゲイン double GAIN_P ;//1.5 // 比例ゲイン double GAIN_I ;//2.8 // 積分ゲイン double GAIN_D ;//0.2 double data; private: Timer timer; Ticker T; float interval; }; #endif