|
|
@ -5,16 +5,13 @@ public class DiActServo extends DiActuatorBase { |
|
|
|
// default velocity |
|
|
|
public Integer defaultVelocity; |
|
|
|
// default acc |
|
|
|
public Integer defaultAcc; |
|
|
|
public Integer defaultTorque; |
|
|
|
|
|
|
|
@Override |
|
|
|
protected void onEnable() { |
|
|
|
if (null != this.defaultVelocity) { |
|
|
|
this.call(DiCommand.MODULE_SET_REG, 1054, this.defaultVelocity); |
|
|
|
} |
|
|
|
if (null != this.defaultAcc) { |
|
|
|
this.call(DiCommand.MODULE_SET_REG, 1077, this.defaultAcc); |
|
|
|
} |
|
|
|
this.setRegValue(1054, this.defaultVelocity); |
|
|
|
this.setRegValue(1077, this.defaultTorque); |
|
|
|
this.activeConfig(); |
|
|
|
} |
|
|
|
|
|
|
|
// move to position |
|
|
|