예제 #1
0
파일: Motor.cs 프로젝트: MorgThom/sos-sub
 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
파일: Motor.cs 프로젝트: MorgThom/sos-sub
 public Motor(MotorInfo info)
     : this(info, info.controller)
 {
 }
예제 #4
0
 public Motor(MotorInfo info) :
     this(info, info.controller)
 {
 }