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