Sub programs of serial_transport, PID and motor contrl.

Dependents:   tracking_ball_0516 tracking_ball_0516

MOTOR_CONTROL_CLASS.h

Committer:
helenh
Date:
2021-05-30
Revision:
7:fd405402ff8c
Parent:
2:a668eb71516b

File content as of revision 7:fd405402ff8c:

#ifndef __MOTOR_CONTROL_CLASS_H__
#define __MOTOR_CONTROL_CLASS_H__
#include<mbed.h>

class Motor_Control_Class{
public:
   Motor_Control_Class(PinName pin);
   ~Motor_Control_Class();
   void Set_Para(double period,double plus_width);
   void Set_Output(int value);
private:
   double m_period;
   double m_plus_width_ratio;
   PwmOut * m_pwmout;
   
};

#endif