Exemple #1
0
 public Motor(MotorInfo info, Jrk controller)
 {
     if (controller == null)
     {
         throw new InvalidInputException("Motor must have Jrk controller attached!");
     }
     this.info = info;
     this.info.controller = controller;
     this.info.controller.setJrkParameter(jrkParameter.PARAMETER_MOTOR_COAST_WHEN_OFF, 0);//set to brake when power is turned off
     SetSpeed(0);
 }
Exemple #2
0
 public Motor(MotorInfo info, Jrk controller)
 {
     if (controller == null)
     {
         throw new InvalidInputException("Motor must have Jrk controller attached!");
     }
     this.info            = info;
     this.info.controller = controller;
     this.info.controller.setJrkParameter(jrkParameter.PARAMETER_MOTOR_COAST_WHEN_OFF, 0);//set to brake when power is turned off
     SetSpeed(0);
 }
Exemple #3
0
 public Motor(MotorInfo info)
     : this(info, info.controller)
 {
 }
Exemple #4
0
 public Motor(MotorInfo info) :
     this(info, info.controller)
 {
 }