1
0
Fork 0

Version 0.2 of airspace program. Note the CHANGES file.

This commit is contained in:
curt 2006-04-14 16:09:10 +00:00
parent 81656fd423
commit 3911a656b5
8 changed files with 4754 additions and 1081 deletions

17
src/Airspace/CHANGES Normal file
View file

@ -0,0 +1,17 @@
0.2 is an extensive rewrite featuring
(1) Texturing on airspace with useful information such as call signs and frequencies for controlling agencies for special use airspace.
(2) Terminal waypoints associated with airports are displayable as well as glide slopes (black for three degree vfr, red for ILS glideslopes with
the glideslope angle as specified in the database. The outer upper boundary onthe glide slope is one degree above the glideslope.
(3) circles, arcs, and lines have been dissected into lists of lines and distributed accross the various tiles. By dividing the graphics files
among the tiles large arcs for Class B airspace for example become visable as soon as the tile comes into view. T he first version would not display until
the center of the circle come into view....
(4) Added signage for (a) airports, (b) navaids, (c) waypoints (d) terminal waypoints (e) special use airspace. The signage system(s) take advantage of the
billboard feature in flightgear so the signs always turn to face the view.
(5) added a menu system to toggle everything on or off to suit the situational requirements. Turning everything on for display in the Los Angelus area is
an excercise in visually getting buried.
The program can output Class A and E airspace boundaries but they seem to be more of a nuisance visually. The default setup in the code is to omit A and E
airspace.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,28 @@
--fg-scenery=/usr/local/share/FlightGear/data/Scenery-Airspace:/usr/local/share/FlightGear/data/Scenery
--timeofday=noon
--disable-skyblend
--fog-disable
--disable-clouds
--visibility-miles=50
--disable-clouds3d
--disable-random-objects
--enable-fullscreen
--fov=75.0
--prop:/sim/airspace_signs/enabled=1.0
--prop:/sim/airspace_signs_airport/enabled=1.0
--prop:/sim/airspace_signs_suas/enabled=1.0
--prop:/sim/airspace/enabled=1.0
--prop:/sim/airspace_b/enabled=1.0
--prop:/sim/airspace_c/enabled=1.0
--prop:/sim/airspace_d/enabled=1.0
--prop:/sim/airspace_alert/enabled=1.0
--prop:/sim/airspace_danger/enabled=1.0
--prop:/sim/airspace_moa/enabled=1.0
--prop:/sim/airspace_prohibited/enabled=1.0
--prop:/sim/airspace_restricted/enabled=1.0
--prop:/sim/airspace_temporary/enabled=1.0
--prop:/sim/airspace_warning/enabled=1.0

View file

@ -0,0 +1,197 @@
<?xml version="1.0"?>
<!-- Toggle visbility options for airspace -->
<PropertyList>
<name>airspace</name>
<modal>false</modal>
<layout>vbox</layout>
<text>
<label>Airspace Options</label>
</text>
<hrule><dummy/></hrule>
<group>
<layout>hbox</layout>
<empty>
<pref-width>10</pref-width>
</empty>
<group>
<layout>vbox</layout>
<group>
<layout>vbox</layout>
<checkbox>
<halign>left</halign>
<label>VFR 3 Degree Glideslope</label>
<property>/sim/airspace_vfr_glideslope/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>ILS Glideslope</label>
<property>/sim/airspace_ils_glideslope/enabled</property>
</checkbox>
<hrule><dummy/></hrule>
<checkbox>
<halign>left</halign>
<label>Enable Signs</label>
<property>/sim/airspace_signs/enabled</property>
</checkbox>
<hrule><dummy/></hrule>
<checkbox>
<halign>left</halign>
<label>...Airports</label>
<property>/sim/airspace_signs_airport/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Navaids</label>
<property>/sim/airspace_signs_navaid/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Special use airspace</label>
<property>/sim/airspace_signs_suas/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Terminal waypoints</label>
<property>/sim/airspace_signs_term_wp/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Waypoints</label>
<property>/sim/airspace_signs_wp/enabled</property>
</checkbox>
<hrule><dummy/></hrule>
<checkbox>
<halign>left</halign>
<label>Enable Airspace</label>
<property>/sim/airspace/enabled</property>
</checkbox>
<hrule><dummy/></hrule>
<checkbox>
<halign>left</halign>
<label>...Class A</label>
<property>/sim/airspace_a/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class B</label>
<property>/sim/airspace_b/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class C</label>
<property>/sim/airspace_c/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class D</label>
<property>/sim/airspace_d/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class E</label>
<property>/sim/airspace_e/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class Alert</label>
<property>/sim/airspace_alert/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class Danger</label>
<property>/sim/airspace_danger/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class MOA</label>
<property>/sim/airspace_moa/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class Prohibited</label>
<property>/sim/airspace_prohibited/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class Restricted</label>
<property>/sim/airspace_restricted/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class Temporary Flight Restriction</label>
<property>/sim/airspace_temporary/enabled</property>
</checkbox>
<checkbox>
<halign>left</halign>
<label>...Class Warning</label>
<property>/sim/airspace_warning/enabled</property>
</checkbox>
</group>
</group>
<empty><stretch>true</stretch></empty>
</group>
<group>
<layout>hbox</layout>
<default-padding>6</default-padding>
<empty><stretch>true</stretch></empty>
<button>
<legend>OK</legend>
<default>true</default>
<equal>true</equal>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<button>
<legend>Apply</legend>
<equal>true</equal>
<binding>
<command>dialog-apply</command>
</binding>
</button>
<button>
<legend>Reset</legend>
<equal>true</equal>
<binding>
<command>dialog-update</command>
</binding>
</button>
<button>
<legend>Cancel</legend>
<equal>true</equal>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
</group>
</PropertyList>

View file

@ -0,0 +1,25 @@
AC3Db
MATERIAL "Material.003" rgb 0 0 0 amb 0.5 0.5 0.5 emis 0 0 0 spec 1 1 1 shi 72 trans 0
OBJECT world
name "glideslope"
numvert 6
0.0 0.0 -15.2
1852.0 96.9 -15.2
1852.0 129.2 -15.2
0.0 0.0 15.2
1852.0 96.9 15.2
1852.0 129.2 15.2
numsurf 2
SURF 0x01
mat 0
refs 3
0 0 0
1 0 0
2 0 0
SURF 0x01
mat 0
refs 3
3 0 0
4 0 0
5 0 0
kids 0

View file

@ -0,0 +1,11 @@
<?xml version="1.0"?>
<PropertyList>
<path>glide-slope-1nm-by-3d.ac</path>
<animation>
<type>select</type>
<object-name>glideslope</object-name>
<condition>
<property>/sim/airspace_vfr_glideslope/enabled</property>
</condition>
</animation>
</PropertyList>

View file

@ -0,0 +1,487 @@
<PropertyList>
<menu>
<label>File</label>
<item>
<label>Save</label>
<binding>
<command>dialog-show</command>
<dialog-name>save_flight</dialog-name>
</binding>
</item>
<item>
<label>Load</label>
<binding>
<command>dialog-show</command>
<dialog-name>load_flight</dialog-name>
</binding>
</item>
<!--
<item>
<label>Load Aircraft</label>
<binding>
<command>dialog-show</command>
<dialog-name>aircraft</dialog-name>
</binding>
</item>
-->
<item>
<label>Reset</label>
<binding>
<command>old-reinit-dialog</command>
</binding>
</item>
<item>
<label>High-Res Snapshot</label>
<binding>
<command>hires-screen-capture</command>
</binding>
</item>
<item>
<label>Snapshot</label>
<binding>
<command>screen-capture</command>
</binding>
</item>
<item>
<label>Print Screen</label>
<binding>
<command>old-print-dialog</command>
</binding>
</item>
<item>
<label>Sound Configuration</label>
<binding>
<command>dialog-show</command>
<dialog-name>sound-dialog</dialog-name>
</binding>
</item>
<item>
<label>Browse Internal Properties</label>
<binding>
<command>old-properties-dialog</command>
</binding>
</item>
<item>
<label>Logging</label>
<binding>
<command>dialog-show</command>
<dialog-name>logging</dialog-name>
</binding>
</item>
<item>
<label>Quit</label>
<binding>
<command>dialog-show</command>
<dialog-name>exit</dialog-name>
</binding>
</item>
</menu>
<menu>
<label>View</label>
<item>
<label>Airspace System</label>
<binding>
<command>dialog-show</command>
<dialog-name>airspace</dialog-name>
</binding>
</item>
<item>
<label>Toggle 2D Panel</label>
<binding>
<command>property-toggle</command>
<property>/sim/panel/visibility</property>
</binding>
</item>
<item>
<label>Rendering options</label>
<binding>
<command>dialog-show</command>
<dialog-name>rendering</dialog-name>
</binding>
</item>
<item>
<label>Adjust View Distance</label>
<binding>
<command>dialog-show</command>
<dialog-name>pilot_offset</dialog-name>
</binding>
</item>
<item>
<label>Adjust HUD Transparency</label>
<binding>
<command>dialog-show</command>
<dialog-name>hud</dialog-name>
</binding>
</item>
<item>
<label>Instant Replay</label>
<binding>
<command>dialog-show</command>
<dialog-name>replay</dialog-name>
</binding>
</item>
<item>
<label>Adjust LOD Ranges</label>
<binding>
<command>dialog-show</command>
<dialog-name>static-lod</dialog-name>
</binding>
</item>
</menu>
<menu>
<label>Location</label>
<item>
<label>Position Aircraft (on ground)</label>
<binding>
<command>dialog-show</command>
<dialog-name>location-on-ground</dialog-name>
</binding>
</item>
<item>
<label>Position Aircraft (in air)</label>
<binding>
<command>dialog-show</command>
<dialog-name>location-in-air</dialog-name>
</binding>
</item>
<item>
<label>Select Airport from List</label>
<binding>
<command>dialog-show</command>
<dialog-name>airports</dialog-name>
</binding>
</item>
<item>
<label>Random Attitude</label>
<binding>
<command>property-assign</command>
<property>/sim/presets/trim</property>
<value>false</value>
</binding>
<binding>
<command>property-randomize</command>
<property>/orientation/pitch-deg</property>
<min>0</min>
<max>360</max>
</binding>
<binding>
<command>property-randomize</command>
<property>/orientation/roll-deg</property>
<min>0</min>
<max>360</max>
</binding>
<binding>
<command>property-randomize</command>
<property>/orientation/heading-deg</property>
<min>0</min>
<max>360</max>
</binding>
</item>
<item>
<label>Tower position</label>
<binding>
<command>dialog-show</command>
<dialog-name>location-of-tower</dialog-name>
</binding>
</item>
</menu>
<menu>
<label>Autopilot</label>
<name>autopilot</name>
<item>
<label>Autopilot Settings</label>
<binding>
<command>dialog-show</command>
<dialog-name>autopilot</dialog-name>
</binding>
</item>
<item>
<label>Add Waypoint</label>
<binding>
<command>old-ap-add-waypoint-dialog</command>
</binding>
</item>
<item>
<label>Pop Waypoint</label>
<binding>
<command>old-ap-pop-waypoint-dialog</command>
</binding>
</item>
<item>
<label>Clear Route</label>
<binding>
<command>old-ap-clear-route-dialog</command>
</binding>
</item>
<!--
<item>
<label>Adjust Autopilot</label>
<binding>
<command>old-ap-adjust-dialog</command>
</binding>
</item>
-->
<item>
<label>Set Lat/Lon Format</label>
<binding>
<command>old-lat-lon-format-dialog</command>
</binding>
</item>
</menu>
<menu>
<label>Weather</label>
<item>
<label>Weather Scenario</label>
<binding>
<command>dialog-show</command>
<dialog-name>weather_scenario</dialog-name>
</binding>
</item>
<item>
<label>Weather Conditions</label>
<binding>
<command>dialog-show</command>
<dialog-name>weather</dialog-name>
</binding>
</item>
<item>
<label>Clouds</label>
<binding>
<command>dialog-show</command>
<dialog-name>clouds</dialog-name>
</binding>
</item>
<item>
<label>Time of Day</label>
<binding>
<command>dialog-show</command>
<dialog-name>timeofday</dialog-name>
</binding>
</item>
</menu>
<menu>
<label>Equipment</label>
<item>
<label>Fuel and Payload</label>
<name>fuel-and-payload</name>
<binding>
<command>nasal</command>
<script>gui.showWeightDialog()</script>
</binding>
</item>
<item>
<label>Radio Settings</label>
<binding>
<command>dialog-show</command>
<dialog-name>radios</dialog-name>
</binding>
</item>
<item>
<label>GPS Settings</label>
<binding>
<command>dialog-show</command>
<dialog-name>gps</dialog-name>
</binding>
</item>
<item>
<label>Instrument Settings</label>
<binding>
<command>dialog-show</command>
<dialog-name>instruments</dialog-name>
</binding>
</item>
<item>
<label>System Failures</label>
<binding>
<command>dialog-show</command>
<dialog-name>system-failures</dialog-name>
</binding>
</item>
<item>
<label>Instrument Failures</label>
<binding>
<command>dialog-show</command>
<dialog-name>instrument-failures</dialog-name>
</binding>
</item>
</menu>
<menu>
<label>ATC/AI</label>
<item>
<label>Frequencies</label>
<binding>
<command>ATC-freq-search</command>
</binding>
</item>
<item>
<label>Options</label>
<binding>
<command>dialog-show</command>
<dialog-name>atc-ai</dialog-name>
</binding>
</item>
</menu>
<menu>
<label>Debug</label>
<item>
<label>Reload GUI</label>
<binding>
<command>reinit</command>
<subsystem>gui</subsystem>
</binding>
</item>
<item>
<label>Reload Input</label>
<binding>
<command>reinit</command>
<subsystem>input</subsystem>
</binding>
</item>
<item>
<label>Reload Panel</label>
<binding>
<command>panel-load</command>
</binding>
</item>
<item>
<label>Reload Autopilot</label>
<binding>
<command>reinit</command>
<subsystem>xml-autopilot</subsystem>
</binding>
</item>
<item>
<label>Nasal Console</label>
<binding>
<command>dialog-show</command>
<dialog-name>nasal-console</dialog-name>
</binding>
</item>
<item>
<label>Development Keys</label>
<binding>
<command>nasal</command>
<script>gui.showHelpDialog("/sim/help/debug")</script>
</binding>
</item>
</menu>
<menu>
<label>Help</label>
<item>
<label>Help</label>
<binding>
<command>old-help-dialog</command>
</binding>
</item>
<item>
<label>Basic Keys</label>
<binding>
<command>nasal</command>
<script>gui.showHelpDialog("/sim/help/basic")</script>
</binding>
</item>
<item>
<label>Common Aircraft Keys</label>
<binding>
<command>nasal</command>
<script>gui.showHelpDialog("/sim/help/common")</script>
</binding>
</item>
<item>
<label>Aircraft Help</label>
<binding>
<command>nasal</command>
<script>gui.showHelpDialog("/sim/help")</script>
</binding>
</item>
<item>
<label>Start Tutorial</label>
<name>tutorial-start</name>
<binding>
<command>nasal</command>
<script>gui.showSelTutDialog()</script>
</binding>
</item>
<item>
<label>End Tutorial</label>
<name>tutorial-stop</name>
<enabled>false</enabled>
<binding>
<command>nasal</command>
<script>tutorial.stopTutorial()</script>
</binding>
</item>
</menu>
</PropertyList>

View file

@ -0,0 +1,34 @@
This folder includes a sample .fgfsrc file which is normally
in the home directory on linux systems as a hidden file.
airspace.xml is a menu to control toggling on and off various
airspace features such as signage, which types of airspace to
display etc.
menubar.xml is the tweaked version of the flighgear menubar to
add in the airspace.xml menu system.
glide-slope-1nm-by-3d.ac and glide-slope.xml are for displaying
3 degree glideslopes for runways with known altitudes for the
runway ends.
Where to put em...
.fgfsrc into your home directory, typically
/home/user/.fgfsrc
menubar.xml into
/usr/local/share/FlightGear/data/gui/menubar.xml
airspace.xml into
/usr/local/share/FlightGear/data/gui/airspace.xml
and the glide slope files into
/usr/local/share/FlightGear/data/Models/Airport/glide-slope-1nm-by-3d.ac
/usr/local/share/FlightGear/data/Models/Airport/glide-slope.xml
Where to put the DAFIF files: unpack the dafif file so the
folders for ARPT etc are in
/usr/local/share/DAFIFT/DAFIFT/
i.e put the DAFIFT.zip file in:
/usr/local/share/DAFIFT