Пример #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);
 }
Пример #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);
 }
Пример #3
0
 public Motor(MotorInfo info)
     : this(info, info.controller)
 {
 }
Пример #4
0
 public Motor(MotorInfo info) :
     this(info, info.controller)
 {
 }