2018 HongoMechaTech A

Dependencies:   mbed

lib/Timer_PID.h

Committer:
Komazawa_sun
Date:
2018-09-18
Revision:
0:e83b840a5f86

File content as of revision 0:e83b840a5f86:

#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