1
0
Fork 0

- fix tab/space-mixtures (they do bad things to ascii graphics :-)

- spell check
This commit is contained in:
mfranz 2006-06-13 15:10:33 +00:00
parent 308cc9fcf5
commit 8d0460e652

View file

@ -65,7 +65,7 @@ Comments are bracketed with <!-- -->.
<name>Default Aircraft Hud</name>
<instruments>
<hudladder> <!--unique name -->
<hudladder> <!--unique name -->
<path>Huds/Instruments/Default/hudladder.xml</path>
</hudladder>
@ -122,10 +122,10 @@ displaying alphanumeric labels (altitude, velocity, Mach no and/or anything else
have a call back function to pass the value using the property 'data_source').
The Hud Card is an instantiable class derived from Instrument scale - for displaying
tapes and guages (single variable display, for displaying aoa, g's, vsi, elevator_posn, etc.).
tapes and gauges (single variable display, for displaying aoa, g's, vsi, elevator_posn, etc.).
The Hud Ladder is an instantiable class derived from Dual Instrument Item - for displaying
pitch reference ladder or climb/dive ladder (two variable display, for dislaying two types of
pitch reference ladder or climb/dive ladder (two variable display, for displaying two types of
ladders, the pitch reference ladder or the climb/dive ladder as defined by MIL-1787b).
The fgTBI Instrument is an instantiable class derived from Dual Instrument scale again
@ -147,7 +147,7 @@ this defines the objects position centered about the centroid of above rectangle
in HUD overlay plane (640x480) coordinates with 0,0 at bottom-left corner.
One more, pixels per degree in the ladder class represents the compression factor of the
pitch ladder. In case of conformal HUD (climd/dive ladder) it is <640/horizontal_fov>
pitch ladder. In case of conformal HUD (climb/dive ladder) it is <640/horizontal_fov>
or <480/vertical_fov>. In case of pitch reference ladder it is
<your_no_of vertical_pixels/your_no_of_ladder_degrees>.
@ -158,30 +158,30 @@ Example of Hud Ladder xml file.
<ladders>
<l1>
<name>Pitch Ladder</name> <!-- Name can be Pitch Ladder or Climb/Dive Ladder -->
<x>260</x> <!-- x start -->
<y>150</y> <!-- y start -->
<width>120</width> <!-- x start + width = x end -->
<height>180</height> <!-- y start + height = y end -->
<compression_factor>2.68</compression_factor> <!-- Pixels per degree -->
<loadfn>roll</loadfn> <!-- Name of the function to be called, here get_roll() is called provision made in Hud.cxx -->
<loadfn1>pitch</loadfn1> <!-- Name of the function to be called, here get_pitch() is called -->
<span_units>45.0</span_units> <!-- Range of the Ladder seen at any instant -->
<division_units>10.0</division_units> <!-- Divisions -->
<screen_hole>70</screen_hole> <!-- Hole b/w the Ladder Bars-->
<lbl_pos>0</lbl_pos> <!-- Label Position to indicate pitch angle on bar -->
<enable_frl>false</enable_frl> <!-- To Enable Pitch Reference Symbol (used by us) -->
<enable_target_spot>true</enable_target_spot> <!-- To Enable Target Spot Symbol (fgfs uses this)-->
<enable_velocity_vector>false</enable_velocity_vector> <!-- To Enable Velocity Vector Symbol (use only with climb/dive ladder)-->
<enable_drift_marker>false</enable_drift_marker> <!-- To Enable Drift Marker Symbol (used by us)-->
<enable_alpha_bracket>false</enable_alpha_bracket> <!-- To Enable Alpha Bracket Symbol (used by us, presently hard coded bracket values, alpha values will be moved to xml file)-->
<enable_energy_marker>false</enable_energy_marker> <!-- To Enable Energy Marker Symbol (used by us)-->
<enable_climb_dive_marker>false</enable_climb_dive_marker> <!-- To Enable Climb/Dive Marker (used by us)-->
<enable_glide_slope_marker>false</enable_glide_slope_marker> <!--To Enable Glide/Slope Marker (tied to climb/dive ladder only)-->
<glide_slope>0.0</glide_slope> <!-- Glide slope angle (specify the angle for drawing the reference bar)
<enable_energy_worm>false</enable_energy_worm> <!-- To Enable Energy worm (used by us)>
<enable_waypoint_marker>false</enable_waypoint_marker> <!-- To Enable Way point Marker (bearing marker)-->
<working>true</working> <!use this to enable or disbale whole object>
<name>Pitch Ladder</name> <!-- Name can be Pitch Ladder or Climb/Dive Ladder -->
<x>260</x> <!-- x start -->
<y>150</y> <!-- y start -->
<width>120</width> <!-- x start + width = x end -->
<height>180</height> <!-- y start + height = y end -->
<compression_factor>2.68</compression_factor> <!-- Pixels per degree -->
<loadfn>roll</loadfn> <!-- Name of the function to be called, here get_roll() is called provision made in Hud.cxx -->
<loadfn1>pitch</loadfn1> <!-- Name of the function to be called, here get_pitch() is called -->
<span_units>45.0</span_units> <!-- Range of the Ladder seen at any instant -->
<division_units>10.0</division_units> <!-- Divisions -->
<screen_hole>70</screen_hole> <!-- Hole b/w the Ladder Bars -->
<lbl_pos>0</lbl_pos> <!-- Label Position to indicate pitch angle on bar -->
<enable_frl>false</enable_frl> <!-- To Enable Pitch Reference Symbol (used by us) -->
<enable_target_spot>true</enable_target_spot> <!-- To Enable Target Spot Symbol (fgfs uses this) -->
<enable_velocity_vector>false</enable_velocity_vector> <!-- To Enable Velocity Vector Symbol (use only with climb/dive ladder) -->
<enable_drift_marker>false</enable_drift_marker> <!-- To Enable Drift Marker Symbol (used by us) -->
<enable_alpha_bracket>false</enable_alpha_bracket> <!-- To Enable Alpha Bracket Symbol (used by us, presently hard coded bracket values, alpha values will be moved to xml file) -->
<enable_energy_marker>false</enable_energy_marker> <!-- To Enable Energy Marker Symbol (used by us) -->
<enable_climb_dive_marker>false</enable_climb_dive_marker> <!-- To Enable Climb/Dive Marker (used by us) -->
<enable_glide_slope_marker>false</enable_glide_slope_marker> <!-- To Enable Glide/Slope Marker (tied to climb/dive ladder only) -->
<glide_slope>0.0</glide_slope> <!-- Glide slope angle (specify the angle for drawing the reference bar) -->
<enable_energy_worm>false</enable_energy_worm> <!-- To Enable Energy worm (used by us) -->
<enable_waypoint_marker>false</enable_waypoint_marker> <!-- To Enable Way point Marker (bearing marker) -->
<working>true</working> <!-- use this to enable or disable whole object -->
</l1>
</ladders>
@ -207,16 +207,16 @@ Example of Hud Card xml file.
<y>430</y>
<width>200</width>
<height>28</height>
<loadfn>heading</loadfn> <!-- Name of the function to be called, here get_Heading() is called -->
<options>4</options> <!-- Read Tape Options Below or Hud.hxx file for details -->
<maxValue>360.0</maxValue> <!-- Maximum scale value -->
<minValue>0.0</minValue> <!-- Minimum Scale Value -->
<disp_scaling>1.0</disp_scaling> <!-- Multiply by this to get numbers shown on scale -->
<major_divs>5</major_divs> <!-- major division marker units -->
<minor_divs>1</minor_divs> <!-- minor division marker units -->
<modulator>360</modulator> <!-- Its a rose, Roll Over Point -->
<loadfn>heading</loadfn> <!-- Name of the function to be called, here get_Heading() is called -->
<options>4</options> <!-- Read Tape Options Below or Hud.hxx file for details -->
<maxValue>360.0</maxValue> <!-- Maximum scale value -->
<minValue>0.0</minValue> <!-- Minimum Scale Value -->
<disp_scaling>1.0</disp_scaling> <!-- Multiply by this to get numbers shown on scale -->
<major_divs>5</major_divs> <!-- major division marker units -->
<minor_divs>1</minor_divs> <!-- minor division marker units -->
<modulator>360</modulator> <!-- Its a rose, Roll Over Point -->
<value_span>25.0</value_span> <!-- Range Shown -->
<type>tape</type> <!-- Card type can be "tape" or "guage" -->
<type>tape</type> <!-- Card type can be "tape" or "gauge" -->
<tick_bottom>false</tick_bottom> <!-- Read Ticks and Caps below -->
<tick_top>false</tick_top>
<tick_right>true</tick_right>
@ -225,9 +225,9 @@ Example of Hud Card xml file.
<cap_top>false</cap_top>
<cap_right>false</cap_right>
<cap_left>false</cap_left>
<marker_offset>0.0</marker_offset> <!-- Read Marker offset below -->
<marker_offset>0.0</marker_offset> <!-- Read Marker offset below -->
<enable_pointer>true</enable_pointer> <!-- To draw a pointer -->
<pointer_type>fixed</pointer_type> <!-- Type of pointer, Fixed or Moving (yet to be implemented)-->
<pointer_type>fixed</pointer_type> <!-- Type of pointer, Fixed or Moving (yet to be implemented) -->
<working>true</working>
</c1>
@ -237,9 +237,9 @@ Example of Hud Card xml file.
Tape Options:
HUDS_AUTOTICKS = 0x0001
HUDS_VERT = 0x0002
HUDS_HORZ = 0x0000
HUDS_AUTOTICKS = 0x0001
HUDS_VERT = 0x0002
HUDS_HORZ = 0x0000
HUDS_TOP = 0x0004
HUDS_BOTTOM = 0x0008
HUDS_LEFT = HUDS_TOP
@ -249,11 +249,11 @@ HUDS_NOTICKS = 0x0010
HUDS_ARITHTIC = 0x0020
HUDS_DECITICS = 0x0040
HUDS_NOTEXT = 0x0080
HUDS_LEFT | HUDS_VERT = 0x0006
HUDS_RIGHT | HUDS_VERT = 0x0010
HUDS_TOP | HUDS_NOTEXT = 0x0084
HUDS_BOTTOM | HUDS_NOTEXT = 0x0088
HUDS_VERT | HUDS_LEFT | HUDS_NOTEXT = 0x0086
HUDS_LEFT | HUDS_VERT = 0x0006
HUDS_RIGHT | HUDS_VERT = 0x0010
HUDS_TOP | HUDS_NOTEXT = 0x0084
HUDS_BOTTOM | HUDS_NOTEXT = 0x0088
HUDS_VERT | HUDS_LEFT | HUDS_NOTEXT = 0x0086
HUDS_RIGHT | HUDS_VERT | HUDS_NOTEXT = 0x0090
@ -265,11 +265,11 @@ For clarity, I repeat, Ticks and Caps :
v
Bottom Cap
2. Top Cap
2. Top Cap
|
v
_____
| |
| |
3. Top Tick
@ -277,29 +277,29 @@ For clarity, I repeat, Ticks and Caps :
v
---
|
|<- Right Cap
|<- Right Cap
|
---
|
v
Bottom Tick
4. ---
|
Left Cap -> |
|
---
4. ---
|
Left Cap -> |
|
---
Marker Offset :
To Draw pointer on the scale markings. In the case of a our hud with offset 10.0
The pointer is away from the scale and points at the markings.
-| -
-| -
<| -<
-| -
-| -
-| -
-| -
<| -<
-| -
-| -
Marker offset = 0.0 Marker offset = 10.0
This should be useful when I implement the fixed tape/moving pointer.
@ -317,17 +317,17 @@ Example of a Label xml file.
<y>130</y>
<width>40</width>
<height>30</height>
<data_source>mach</data_source> <!-- Name of the function to be called, here get_Heading() is called -->
<label_format>%4.2f</label_format> <!-- The Label Format -->
<pre_label_string>blank</pre_label_string> <!-- String to be written Pre Label -->
<data_source>mach</data_source> <!-- Name of the function to be called, here get_Heading() is called -->
<label_format>%4.2f</label_format> <!-- The Label Format -->
<pre_label_string>blank</pre_label_string> <!-- String to be written Pre Label -->
<post_label_string>NULL</post_label_string> <!-- String to be written Post Label -->
<scale_data>1.0</scale_data>
<options>4</options> <!-- Read Tape options or Hud.hxx -->
<justification>2</justification> <!-- Justify the label, 0=LEFT_JUSTIFY, 1=CENTER_JUSTIFY, 2=RIGHT_JUSTIFY -->
<blinking>0</blinking> <!-- Yet to be implemented -->
<options>4</options> <!-- Read Tape options or Hud.hxx -->
<justification>2</justification> <!-- Justify the label, 0=LEFT_JUSTIFY, 1=CENTER_JUSTIFY, 2=RIGHT_JUSTIFY -->
<blinking>0</blinking> <!-- Yet to be implemented -->
<working>true</working>
<latitude>false</latitude> <!-- True if the label is to display Lattitude (special label, displays deg.min.sec)-->
<longitude>false</longitude> <!-- True if the label is to display Longitude (special label, displays deg.min.sec)-->
<latitude>false</latitude> <!-- True if the label is to display Latitude (special label, displays deg.min.sec) -->
<longitude>false</longitude> <!-- True if the label is to display Longitude (special label, displays deg.min.sec) -->
</i1>
</labels>
@ -347,11 +347,11 @@ Example of a Turn Bank Indicator xml file.
<y>45</y>
<width>60</width>
<height>10</height>
<loadfn>roll</loadfn> <!-- Name of the function to be called, get_roll() is called here. -->
<loadfn>roll</loadfn> <!-- Name of the function to be called, get_roll() is called here. -->
<loadfn1>sideslip</loadfn1> <!-- Name of the function to be called, get_sideslip() is called here. -->
<maxBankAngle>45.0</maxBankAngle> <!-- Maximum Angle of Bank -->
<maxBankAngle>45.0</maxBankAngle> <!-- Maximum Angle of Bank -->
<maxSlipAngle>5.0</maxSlipAngle> <!-- Maximum Angle of Slip -->
<gap_width>5</gap_width> <!-- Screen Hole -->
<gap_width>5</gap_width> <!-- Screen Hole -->
<working>true</working>
</f1>
@ -365,36 +365,36 @@ REMEMBER IF YOU NEED TO INDICATE ANY OTHER PARAMETER ON THE HUD OTHER THAN WHAT
CALLBACK FUNCTIONS (PROPERTY NAMES LISTED BELOW) YOU HAVE TO FIDDLE WITH THE CODE, AS YET. LET ME
KNOW AND I SHALL INCLUDE THAT.
<loadfn>anzg</loadfn> <!-- Here get_anzg() is called -->
<loadfn>heading</loadfn> <!-- Here get_heading() is called -->
<loadfn>aoa</loadfn> <!-- Here get_aoa() is called -->
<loadfn>climb</loadfn> <!-- Here get_climb() is called -->
<loadfn>altitude</loadfn> <!-- Here get_altitude() is called -->
<loadfn>agl</loadfn> <!-- Here get_agl() is called -->
<loadfn>speed</loadfn> <!-- Here get_speed() is called -->
<loadfn>view_direction</loadfn> <!-- Here get_view_direction() is called -->
<loadfn>aileronval</loadfn> <!-- Here get_aileronval() is called -->
<loadfn>elevatorval</loadfn> <!-- Here get_elevatorval() is called -->
<loadfn>rudderval</loadfn> <!-- Here get_rudderval() is called -->
<loadfn>throttleval</loadfn> <!-- Here get_throttleval() is called -->
<loadfn>aux16</loadfn> <!-- Here get_aux16() is called -->
<loadfn>aux17</loadfn> <!-- Here get_aux17() is called -->
<loadfn>aux9</loadfn> <!-- Here get_aux9() is called -->
<loadfn>aux11</loadfn> <!-- Here get_aux11() is called -->
<loadfn>aux12</loadfn> <!-- Here get_aux12() is called -->
<loadfn>aux10</loadfn> <!-- Here get_aux10() is called -->
<loadfn>aux13</loadfn> <!-- Here get_aux13() is called -->
<loadfn>aux14</loadfn> <!-- Here get_aux14() is called -->
<loadfn>aux15</loadfn> <!-- Here get_aux15() is called -->
<loadfn>aux8</loadfn> <!-- Here get_aux8() is called -->
<loadfn>ax</loadfn> <!-- Here get_Ax() is called -->
<loadfn>mach</loadfn> <!-- Here get_mach() is called -->
<loadfn>framerate</loadfn> <!-- Here get_frame_rate() is called -->
<loadfn>fov</loadfn> <!-- Here get_fov() is called -->
<loadfn>vfc_tris_culled</loadfn> <!-- Here get_vfc_tris_culled() is called -->
<loadfn>vfc_tris_drawn</loadfn> <!-- Here get_vfc_tris_drawn() is called -->
<loadfn>latitude</loadfn> <!-- Here get_latitude() is called -->
<loadfn>longitude</loadfn> <!-- Here get_longitude() is called -->
<loadfn>anzg</loadfn> <!-- Here get_anzg() is called -->
<loadfn>heading</loadfn> <!-- Here get_heading() is called -->
<loadfn>aoa</loadfn> <!-- Here get_aoa() is called -->
<loadfn>climb</loadfn> <!-- Here get_climb() is called -->
<loadfn>altitude</loadfn> <!-- Here get_altitude() is called -->
<loadfn>agl</loadfn> <!-- Here get_agl() is called -->
<loadfn>speed</loadfn> <!-- Here get_speed() is called -->
<loadfn>view_direction</loadfn> <!-- Here get_view_direction() is called -->
<loadfn>aileronval</loadfn> <!-- Here get_aileronval() is called -->
<loadfn>elevatorval</loadfn> <!-- Here get_elevatorval() is called -->
<loadfn>rudderval</loadfn> <!-- Here get_rudderval() is called -->
<loadfn>throttleval</loadfn> <!-- Here get_throttleval() is called -->
<loadfn>aux16</loadfn> <!-- Here get_aux16() is called -->
<loadfn>aux17</loadfn> <!-- Here get_aux17() is called -->
<loadfn>aux9</loadfn> <!-- Here get_aux9() is called -->
<loadfn>aux11</loadfn> <!-- Here get_aux11() is called -->
<loadfn>aux12</loadfn> <!-- Here get_aux12() is called -->
<loadfn>aux10</loadfn> <!-- Here get_aux10() is called -->
<loadfn>aux13</loadfn> <!-- Here get_aux13() is called -->
<loadfn>aux14</loadfn> <!-- Here get_aux14() is called -->
<loadfn>aux15</loadfn> <!-- Here get_aux15() is called -->
<loadfn>aux8</loadfn> <!-- Here get_aux8() is called -->
<loadfn>ax</loadfn> <!-- Here get_Ax() is called -->
<loadfn>mach</loadfn> <!-- Here get_mach() is called -->
<loadfn>framerate</loadfn> <!-- Here get_frame_rate() is called -->
<loadfn>fov</loadfn> <!-- Here get_fov() is called -->
<loadfn>vfc_tris_culled</loadfn> <!-- Here get_vfc_tris_culled() is called -->
<loadfn>vfc_tris_drawn</loadfn> <!-- Here get_vfc_tris_drawn() is called -->
<loadfn>latitude</loadfn> <!-- Here get_latitude() is called -->
<loadfn>longitude</loadfn> <!-- Here get_longitude() is called -->