5.0

5.0 | 1 rating Rate this file 42 Downloads (last 30 days) File Size: 395.56 KB File ID: #31142
image thumbnail

International Flight Route Planning Simulator using Aerospace Blockset

by Saurabh Mahapatra

 

21 Apr 2011

Example that shows how you can visualize airline routes on the globe.

| Watch this File

File Information
Description

In this demo, with an ordered list of cities with latitudes and longitudes as input, the simulator computes the shortest path between the two consecutive cities and then animates the aircraft motion on 3D earth while tracing the trajectory. Observe that this is an example where the analysis of the data is done in MATLAB and the data is "played back" in Simulink.

Also, attached to the plane is a North-East-Down (NED) frame, that gives a better understanding of aircraft coordinate systems.

Key design considerations:

1. The image of the earth that was used to texture the spherical earth was from NASA's 2002 Blue Marble images:

http://visibleearth.nasa.gov/view_rec.php?id=2433

Please note that calibrating the latitudes and longitudes on this spehrical earth requires that you use a mercator projection with aspect ratio 2:1.

2. The great circles joining any two cities were computed using the Mapping Toolbox's track2 function:

http://www.mathworks.com/help/toolbox/map/ref/track2.html

The number of sampling points chosen were scaled accordingly to allow for uniformity in airplane motion.

3. The set of latitudes and longitudes were input to a LLA to ECEF block to compute the translational coordinates of the aircraft with the NED frame attached:

http://www.mathworks.com/help/toolbox/aeroblks/llatoecefposition.html

4. To compute the orientation of the NED frame, the Direction Cosine Matrix to Quaternion block was used before mapping it to VRML rotational coordinates:

http://www.mathworks.com/help/toolbox/aeroblks/directioncosinematrixtoquaternions.html

The use of quaternions avoids the issues such as those encountered in this demo:

http://www.mathworks.com/matlabcentral/fileexchange/26123

5. The VR Tracer block from Simulink 3D Animation traces the trajectory in the 3D world. It is put inside an enabled subsystem to downsample the number of trajectory points and thus save memroy for visualization(each point plotted is a 3D object)

Thought provoking questions:
1. Observe how thethe orientation of the aircraft is computed in the NED frame. How does this accuracy depend on the largest allowable number of sampling points i.e. t_scaled?

2. How accurate is the aircraft orientation for routes that pass over the poles?

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Fly a 747 using MATLAB, Fly a 747 with MATLAB: Adding Realism, Quaternions, Trajectory Tracing

Required Products Aerospace Blockset
Mapping Toolbox
Simulink
Simulink 3D Animation
MATLAB release MATLAB 7.12 (2011a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
05 Oct 2011 Mr Smart  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
flight Saurabh Mahapatra 25 Apr 2011 13:15:57
simulator Saurabh Mahapatra 25 Apr 2011 13:15:57
air Saurabh Mahapatra 25 Apr 2011 13:15:57
traffic Saurabh Mahapatra 25 Apr 2011 13:15:57
3d Saurabh Mahapatra 25 Apr 2011 13:15:57
animation Saurabh Mahapatra 25 Apr 2011 13:15:57
aerospace Saurabh Mahapatra 25 Apr 2011 13:15:57
blockset Saurabh Mahapatra 25 Apr 2011 13:15:57
toolbox Saurabh Mahapatra 25 Apr 2011 13:15:57
ecef Saurabh Mahapatra 25 Apr 2011 13:15:57
ned Saurabh Mahapatra 25 Apr 2011 13:15:57
virtual Saurabh Mahapatra 25 Apr 2011 13:15:57
reality Saurabh Mahapatra 25 Apr 2011 13:15:57
planning Saurabh Mahapatra 25 Apr 2011 13:15:57
route Saurabh Mahapatra 25 Apr 2011 13:15:57

Contact us at files@mathworks.com