|
|
@ -61,8 +61,8 @@ class StepMotor45 { |
|
|
|
public: |
|
|
|
void initialize(cfg_t cfg); |
|
|
|
|
|
|
|
void rotate(bool direction) { rotate(direction, defaultspeed); } |
|
|
|
void rotate(bool direction, int speed); |
|
|
|
void rotate(int direction) { rotate(direction, defaultspeed); } |
|
|
|
void rotate(int direction, int speed); |
|
|
|
void moveBy(int pos, int speed); |
|
|
|
void moveBy(int pos) { moveBy(pos, defaultspeed); } |
|
|
|
|
|
|
@ -72,6 +72,7 @@ class StepMotor45 { |
|
|
|
bool isReachTargetPos(); |
|
|
|
void stop(); |
|
|
|
void zeroCalibration(); |
|
|
|
void setPos(int pos) { m_pos = pos; } |
|
|
|
|
|
|
|
int getPos() { return m_pos; } |
|
|
|
|
|
|
|