Wansik Choi
/
linear_motor
linear motor code for ksk
LinearMotor.h
- Committer:
- cws8262
- Date:
- 2017-02-25
- Revision:
- 2:81a944155520
- Parent:
- 1:ff295adcca59
File content as of revision 2:81a944155520:
#ifndef LiNMtR_0_0_1 #define LiNMtR_0_0_1 #include "mbed.h" class LinearMotor{ public: LinearMotor(PinName Dir, PinName Pulse, PinName St, PinName Limit); Ticker timer; DigitalOut dir; DigitalOut pulse; DigitalOut st; DigitalIn limit; void move(double dis, double spd); void init(void); int ItvTable[200]; int stepTable[200]; }; #endif