public ProsthesisTelemetry(ProsthesisTelemetry other) { MT = new ProsthesisMotorTelemetry(other.MT); ST = new ProsthesisSensorTelemetry(other.ST); BMST = new ProsthesisBMSTelemetry(other.BMST); }
public ProsthesisMotorTelemetry(ProsthesisMotorTelemetry other) { if (other.C != null) { C = new float[other.C.Length]; Array.Copy(other.C, C, other.C.Length); } else { C = new float[0]; } if (other.V != null) { V = new int[other.V.Length]; Array.Copy(other.V, V, other.V.Length); } else { V = new int[0]; } if (other.Pout != null) { Pout = new float[other.Pout.Length]; Array.Copy(other.Pout, Pout, other.Pout.Length); } else { Pout = new float[0]; } if (other.Fl != null) { Fl = new float[other.Fl.Length]; Array.Copy(other.Fl, Fl, other.Fl.Length); } else { Fl = new float[0]; } if (other.Pload != null) { Pload = new float[other.Pload.Length]; Array.Copy(other.Pload, Pload, other.Pload.Length); } else { Pload = new float[0]; } Load = other.Load; if (other.Dt != null) { Dt = new float[other.Dt.Length]; Array.Copy(other.Dt, Dt, other.Dt.Length); } else { Dt = new float[0]; } Ds = other.Ds; if (other.Ps != null) { Ps = new float[other.Ps.Length]; Array.Copy(other.Ps, Ps, other.Ps.Length); } else { Ps = new float[0]; } if (other.P != null) { P = new float[other.P.Length]; Array.Copy(other.P, P, other.P.Length); } else { P = new float[0]; } if (other.I != null) { I = new float[other.I.Length]; Array.Copy(other.I, I, other.I.Length); } else { I = new float[0]; } if (other.D != null) { D = new float[other.D.Length]; Array.Copy(other.D, D, other.D.Length); } else { D = new float[0]; } }