Beispiel #1
0
 public void SetAltitude(double altRef)
 {
     if (this.alt != null)
     {
         this.alt.SetParam(altRef);
     }
     else
     {
         this.alt = new Altitude(altRef);
     }
 }
Beispiel #2
0
 public void SetSpeed(double speedRef)
 {
     if (this.speed != null)
     {
         this.speed.SetParam(speedRef);
     }
     else
     {
         this.speed = new Speed(speedRef);
     }
 }
Beispiel #3
0
 public void SetHeading(double headRef)
 {
     if (this.head != null)
     {
         this.head.SetParam(headRef);
     }
     else
     {
         this.head = new Altitude(headRef);
     }
 }
Beispiel #4
0
		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();
			}
		}
Beispiel #5
0
        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();
            }
        }
Beispiel #6
0
		public void SetHeading(double headRef)
		{
			if(this.head != null)
				this.head.SetParam(headRef);
			else
				this.head = new Altitude(headRef);
		}
Beispiel #7
0
		public void SetAltitude(double altRef)
		{
			if(this.alt != null)
				this.alt.SetParam(altRef);
			else
				this.alt = new Altitude(altRef);
		}
Beispiel #8
0
		public void SetSpeed(double speedRef)
		{
			if(this.speed != null)
				this.speed.SetParam(speedRef);
			else
				this.speed = new Speed(speedRef);
		}