public Servo(MuMechToggle rawServo) { this.rawServo = rawServo; controlGroup = new ControlGroup(rawServo); input = new ServoInput(rawServo); if (rawServo.rotateJoint) { mechanism = new RotatingMechanism(rawServo); } else { mechanism = new TranslateMechanism(rawServo); } preset = new ServoPreset(rawServo, this); }
public bool Equals(IControlGroup other) { var controlGroup = other as IRControlGroup; return(controlGroup != null && Equals(controlGroup)); }