taiyou komazawa
/
Nucleo_fliping_arm
2018 HongoMechaTech A
Diff: lib/Timer_PID.h
- Revision:
- 0:e83b840a5f86
diff -r 000000000000 -r e83b840a5f86 lib/Timer_PID.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/Timer_PID.h Tue Sep 18 03:11:01 2018 +0000 @@ -0,0 +1,19 @@ +#ifndef TIMER_PID_H_ +#define TIMER_PID_H_ + +#include <mbed.h> +#include "PID_Control.h" + +class Timer_PID : public PID_Control +{ +public: + Timer_PID(double kp = 0, double ki = 0, double kd = 0); + double PID(double present, double target); + double read_interval(); + void reset(); +protected: + Timer timer; + double interval; +}; + +#endif