|
|
@ -94,7 +94,7 @@ public class DiActMotor extends DiActuatorBase { |
|
|
|
// move to position |
|
|
|
public void moveTo( Integer pos ) { |
|
|
|
this.log("moveTo {}", pos); |
|
|
|
this.call(DiCommand.MOTO_EASY_MOVE_TO, pos); |
|
|
|
this.call(DiCommand.MOTOR_EASY_MOVE_TO, pos); |
|
|
|
this.waitForFinish(); |
|
|
|
} |
|
|
|
|
|
|
@ -102,10 +102,14 @@ public class DiActMotor extends DiActuatorBase { |
|
|
|
public void moveTo( String key, Object ... args ) { |
|
|
|
Integer pos = this.getLocationValue(key, args); |
|
|
|
this.log("moveTo #{}={}", key, pos); |
|
|
|
this.call(DiCommand.MOTO_EASY_MOVE_TO, pos); |
|
|
|
this.call(DiCommand.MOTOR_EASY_MOVE_TO, pos); |
|
|
|
this.waitForFinish(); |
|
|
|
} |
|
|
|
|
|
|
|
public void rotate( Integer direction ) {} |
|
|
|
public void stop() {} |
|
|
|
// move to IO |
|
|
|
public void moveToIO( Integer ioIndex, Integer direction ) { |
|
|
|
this.log("moveToIO {} {}", ioIndex, direction); |
|
|
|
this.call(DiCommand.MOTOR_EASY_MOVE_TO_IO, ioIndex, direction); |
|
|
|
this.waitForFinish(); |
|
|
|
} |
|
|
|
} |