12.07.2015 Views

Developement Of An Instrument Landing Simulation ... - Cal Poly

Developement Of An Instrument Landing Simulation ... - Cal Poly

Developement Of An Instrument Landing Simulation ... - Cal Poly

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}void <strong>Cal</strong>culate( ){const double GlideSlope=-2.5; //Define the Glide Slope <strong>An</strong>gleconst float pi = 3.14159;double Theta1=0; //<strong>An</strong>gle from Horizontal.double Theta2=0; //Supplement of Theta1.double Theta3=0; //From Horizontal to runway centerline.double Theta4=0; //<strong>An</strong>gle from Horizontal to airport.double x=0;double y=0;double z=0;double a=0;double r=0;//X distance between aircraft and airport.//Y distance between aircraft and airport.//Z distance between aircraft and airport.//Arc Length of CDVert//Radial distance from airport to aircraft.double lambda=0;//<strong>Cal</strong>culate Theta for CDI and CDVertx = -(ACX-APX);y = ACY-APY;z = ACZ-APZ;r = sqrt(x*x+y*y);Theta1 = atan(y/x);91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!