internal SmcMotorLimits(SmcMotorLimitsStruct s) { this.maxSpeed = s.maxSpeed; this.maxAcceleration = s.maxAcceleration; this.maxDeceleration = s.maxDeceleration; this.brakeDuration = s.brakeDuration; this.startingSpeed = s.startingSpeed; }
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); }