public void SetAltitude(double altRef) { if (this.alt != null) { this.alt.SetParam(altRef); } else { this.alt = new Altitude(altRef); } }
public void SetSpeed(double speedRef) { if (this.speed != null) { this.speed.SetParam(speedRef); } else { this.speed = new Speed(speedRef); } }
public void SetHeading(double headRef) { if (this.head != null) { this.head.SetParam(headRef); } else { this.head = new Altitude(headRef); } }
public void Initialize (double altRef, double headRef, double speedRef) { this.pid = PIDManager.GetInstance(); this.alt = new Altitude(altRef); this.head = new Heading(headRef); this.speed = new Speed(speedRef); if(this.isFirst == true) { this.isFirst = false; this.ci = new ConsoleInput(this); ThreadStart thsCi = new ThreadStart(this.ci.Run); Thread th = new Thread(thsCi); th.Start(); } }
public void Initialize(double altRef, double headRef, double speedRef) { this.pid = PIDManager.GetInstance(); this.alt = new Altitude(altRef); this.head = new Heading(headRef); this.speed = new Speed(speedRef); if (this.isFirst == true) { this.isFirst = false; this.ci = new ConsoleInput(this); ThreadStart thsCi = new ThreadStart(this.ci.Run); Thread th = new Thread(thsCi); th.Start(); } }
public void SetHeading(double headRef) { if(this.head != null) this.head.SetParam(headRef); else this.head = new Altitude(headRef); }
public void SetAltitude(double altRef) { if(this.alt != null) this.alt.SetParam(altRef); else this.alt = new Altitude(altRef); }
public void SetSpeed(double speedRef) { if(this.speed != null) this.speed.SetParam(speedRef); else this.speed = new Speed(speedRef); }