예제 #1
0
 internal SmcMotorLimits(SmcMotorLimitsStruct s)
 {
     this.maxSpeed        = s.maxSpeed;
     this.maxAcceleration = s.maxAcceleration;
     this.maxDeceleration = s.maxDeceleration;
     this.brakeDuration   = s.brakeDuration;
     this.startingSpeed   = s.startingSpeed;
 }
예제 #2
0
        internal SmcMotorLimitsStruct convertToStruct()
        {
            SmcMotorLimitsStruct s = new SmcMotorLimitsStruct();

            s.maxSpeed        = this.maxSpeed;
            s.maxAcceleration = this.maxAcceleration;
            s.maxDeceleration = this.maxDeceleration;
            s.brakeDuration   = this.brakeDuration;
            s.startingSpeed   = this.startingSpeed;
            return(s);
        }