|
|
@ -35,7 +35,7 @@ public class DoorDriver{ |
|
|
|
// ==== ==== ==== ==== ==== ==== Ctrl ==== ==== ==== ==== ==== ==== |
|
|
|
public void moveToHome(StepMotorMId stepMotorMId) throws Exception |
|
|
|
{ |
|
|
|
stepMotorCtrlDriver_.stepMotorEasyMoveToZero(stepMotorMId); |
|
|
|
stepMotorCtrlDriver_.stepMotorEasyMoveToZeroBlock(stepMotorMId); |
|
|
|
} |
|
|
|
|
|
|
|
public void moveTo(StepMotorMId stepMotorMId, double position) throws Exception |
|
|
@ -46,7 +46,7 @@ public class DoorDriver{ |
|
|
|
} |
|
|
|
|
|
|
|
int motorPosition = StepMotorHelper.toMotorPosition(position); |
|
|
|
stepMotorCtrlDriver_.stepMotorEasyMoveTo(stepMotorMId, motorPosition); |
|
|
|
stepMotorCtrlDriver_.stepMotorEasyMoveToBlock(stepMotorMId, motorPosition); |
|
|
|
} |
|
|
|
|
|
|
|
public void moveBy(StepMotorMId stepMotorMId, double distance) throws Exception |
|
|
@ -57,7 +57,7 @@ public class DoorDriver{ |
|
|
|
} |
|
|
|
|
|
|
|
int motorPosition = StepMotorHelper.toMotorPosition(distance); |
|
|
|
stepMotorCtrlDriver_.stepMotorEasyMoveBy(stepMotorMId, motorPosition); |
|
|
|
stepMotorCtrlDriver_.stepMotorEasyMoveByBlock(stepMotorMId, motorPosition); |
|
|
|
} |
|
|
|
|
|
|
|
public void stop(StepMotorMId stepMotorMId) throws Exception { |
|
|
|