loliruyu
vnh_2sp30.h
- Committer:
- Osgoth
- Date:
- 2018-03-28
- Revision:
- 0:d7f40a9a9020
File content as of revision 0:d7f40a9a9020:
#include <vnh_2sp30_conf.h> #include <mbed.h> #define FORWARD 0x1 #define BACKWARD 0x0 class vnh_2sp30{ private: int dir; float vel; float acc; float cur; digitalOut ENA; digitalOut ENB; PwmOut PWM; analogIn CS; Ticker t; void update(); public: vnh_2sp30(); ~vnh_2sp30(); set_vel(float vel); set_dir(int dir); set_acc(float acc); }