]> git.mxchange.org Git - flightgear.git/log
flightgear.git
17 years agodefine label box pointer via <pointer-width> (width of base) and
mfranz [Tue, 25 Jul 2006 07:07:34 +0000 (07:07 +0000)]
define label box pointer via <pointer-width> (width of base) and
<pointer-length>

17 years agoI've heard that endless loops aren't overly popular.
mfranz [Mon, 24 Jul 2006 17:52:20 +0000 (17:52 +0000)]
I've heard that endless loops aren't overly popular.

17 years ago8 is a bit too much for <marker-offset> default; use 5
mfranz [Mon, 24 Jul 2006 17:46:08 +0000 (17:46 +0000)]
8 is a bit too much for <marker-offset> default; use 5

17 years agono longer let top==left and bottom==right. This is necessary for label-box
mfranz [Mon, 24 Jul 2006 17:35:34 +0000 (17:35 +0000)]
no longer let top==left and bottom==right. This is necessary for label-box
pointers, and may introduce bugs elsewhere. Not that I've notice any yet.

17 years agofirst stab at label box pointers. <option>top</option> on a <label> makes
mfranz [Mon, 24 Jul 2006 17:09:03 +0000 (17:09 +0000)]
first stab at label box pointers. <option>top</option> on a <label> makes
such a box:

    _____/\_____
    |   Booo   |
    |__________|

likewise with options bottom, left, right. The size can be set via option
<marker-offset> (analogous to <tape> offsets), which describes the distance
from the base to the peak. Default: 8 px

17 years agomake old HUD code work with 8 px font size
mfranz [Mon, 24 Jul 2006 16:02:56 +0000 (16:02 +0000)]
make old HUD code work with 8 px font size

17 years ago- don't use 10 pt font size for width calculations, when in fact we use
mfranz [Mon, 24 Jul 2006 16:00:18 +0000 (16:00 +0000)]
- don't use 10 pt font size for width calculations, when in fact we use
  a 8 pt font (set 8 pt in preferences.xml, too)
- fix vertical alignment of digits in label and ladder (temporary
  solution -- the whole font handling needs to be reviewd and fixed)
- simplify nadir and zenith (they always want to be horizontally centered
  on the ladder lines, no?)
- simplify and abstract label box drawing (no need for stippled side lines)
- align text (more) correctly in label boxes

17 years agoSwitch sign of beta/drift.
curt [Sun, 23 Jul 2006 17:47:23 +0000 (17:47 +0000)]
Switch sign of beta/drift.

17 years agocleanup (getBoolValue() returns false by default)
mfranz [Sun, 23 Jul 2006 16:57:13 +0000 (16:57 +0000)]
cleanup  (getBoolValue() returns false by default)

17 years agoRe-implement the flight path marker (aka "velocity vector") so it's position
curt [Sun, 23 Jul 2006 16:41:18 +0000 (16:41 +0000)]
Re-implement the flight path marker (aka "velocity vector") so it's position
is computed from alpha and beta.  Before the code U, V, & W body velocities
to compute alpha/beta.  Why not just use the values directly.

17 years ago- use Item::draw_circle() to draw circles (waypoint marker still to be done)
mfranz [Sun, 23 Jul 2006 08:14:03 +0000 (08:14 +0000)]
- use Item::draw_circle() to draw circles (waypoint marker still to be done)
- move variable declaration near their first use (c++ style rather than c)
- rename (zenith|nadir|hat) to enable-(zenith|nadir|hat) and make them bool
  (for consistency reasons)

17 years agoreticle should fit into bounding box (don't take diameter as radius)
mfranz [Sat, 22 Jul 2006 17:27:43 +0000 (17:27 +0000)]
reticle should fit into bounding box (don't take diameter as radius)

17 years agodon't be afraid of the comma operator!
mfranz [Sat, 22 Jul 2006 11:48:22 +0000 (11:48 +0000)]
don't be afraid of the comma operator!

17 years agoget rid of struct Point and get_centroid(). Instruments may access *their*
mfranz [Sat, 22 Jul 2006 10:09:36 +0000 (10:09 +0000)]
get rid of struct Point and get_centroid(). Instruments may access *their*
properties directly. This is properly encapsulated already.

17 years agoWin32 fix
fredb [Sat, 22 Jul 2006 08:49:47 +0000 (08:49 +0000)]
Win32 fix

17 years agoadd MIL-STD-1787B Aiming Reticle (stadiametric; TODO: standby)
mfranz [Sat, 22 Jul 2006 08:00:56 +0000 (08:00 +0000)]
add MIL-STD-1787B Aiming Reticle (stadiametric; TODO: standby)

17 years agoAdd support for a back-course mode. Nothing changes visualy, but this
curt [Fri, 21 Jul 2006 19:37:04 +0000 (19:37 +0000)]
Add support for a back-course mode.  Nothing changes visualy, but this
reverses the autopilot helpers so that the FD/AP can properly fly a BC appr.

17 years agoSmall tweaks to point lighting configuration to better control the appearance
curt [Fri, 21 Jul 2006 15:48:57 +0000 (15:48 +0000)]
Small tweaks to point lighting configuration to better control the appearance
of approach rabbits.

17 years agoAdd a configuration property to turn on/off the use of point sprites.
curt [Thu, 20 Jul 2006 03:47:39 +0000 (03:47 +0000)]
Add a configuration property to turn on/off the use of point sprites.

Generally you want point sprites for performance reasons when enhanced runway
lighting (and smooth points) are activated.  Most hardware doesn't
accelerate the rendering of standard smooth points, so without point sprites
you will kill your night time performance if you turn on enhanced runway
lighting.

Note that enhanced runway lighting "breaks" our clever scheme to make the
runway lighting brightness vary with the relative view angle.  This means
with enhanced lighting on, all lights are equally bright no matter what
direction you view them from.  So perpendicular runways are just as bright
as runways you are directly lined up with (when enhanced runway lighthing
is activated.)

You can revert to the original lighting scheme by turning off enhance runway
lights, turning off distance-attenuation, and turning off point-sprites in
the rendering options menu.

17 years agoAlways check for if glPointParameterIsSupported, even if we haven't asked
curt [Thu, 20 Jul 2006 03:43:07 +0000 (03:43 +0000)]
Always check for if glPointParameterIsSupported, even if we haven't asked
for point light distance attenuation, because we may want to toggle this
on via the rendering options gui.

17 years agoRework the naModLock()/naModUnlock() semantics to be more
andy [Wed, 19 Jul 2006 19:46:53 +0000 (19:46 +0000)]
Rework the naModLock()/naModUnlock() semantics to be more
maintainable.  The rules are simple (extension functions are called
*with* the lock, which must be dropped before calling naCall(), which
grabs it) but the tracking of when the lock was held was getting a
little confused.  Keep a "nasal call depth" count in the subsystem to
figure out whether we are making a sub-call and thus hold the lock.

17 years ago- Code cleanups.
curt [Tue, 18 Jul 2006 21:35:11 +0000 (21:35 +0000)]
- Code cleanups.
- Fix a warning about class member initialization order.
- Clear up a problem with the default autopilot behavior on the back side
  of an ILS in preparation for adding a real "back course" approach mode.

17 years agoSomehow this test stopped working on my PC. At least the new solution should work...
ehofman [Mon, 17 Jul 2006 20:22:45 +0000 (20:22 +0000)]
Somehow this test stopped working on my PC. At least the new solution should work for ages.

17 years agoonly consider positive airspeed in longitudinal axis
mfranz [Mon, 17 Jul 2006 18:14:31 +0000 (18:14 +0000)]
only consider positive airspeed in longitudinal axis

17 years agoUse one standard define for enableing of the Special Purpose FDM code.
ehofman [Mon, 17 Jul 2006 17:58:53 +0000 (17:58 +0000)]
Use one standard define for enableing of the Special Purpose FDM code.

17 years ago... but then again: it's only a rumor that listeners on tied properties
mfranz [Sun, 16 Jul 2006 11:48:22 +0000 (11:48 +0000)]
... but then again: it's only a rumor that listeners on tied properties
don't work. And like most rumors, it's untrue. So just output a debug
message.

17 years ago- complain about attempts to attach a listener to a tied node
mfranz [Sun, 16 Jul 2006 11:30:33 +0000 (11:30 +0000)]
- complain about attempts to attach a listener to a tied node
- do *not* complain about a listener writing to its own node, but don't
  enter recursion either

17 years agowhoops ... don't let the new HUD turn off 3D mode in the old one :-)
mfranz [Sat, 15 Jul 2006 18:15:00 +0000 (18:15 +0000)]
whoops ... don't let the new HUD turn off 3D mode in the old one  :-)

17 years agobracesless blocks are peanuts! It's forgotten "else" that do real harm. :-)
mfranz [Wed, 12 Jul 2006 20:54:27 +0000 (20:54 +0000)]
bracesless blocks are peanuts! It's forgotten "else" that do real harm. :-)

17 years agoAdd a "ufo" performance entry for the AI Aircraft. This gives very agressive
curt [Wed, 12 Jul 2006 19:10:35 +0000 (19:10 +0000)]
Add a "ufo" performance entry for the AI Aircraft.  This gives very agressive
accel/decel and climb/decend performance which is useful for some scripting
scenarios.

17 years agoFix a small typo.
curt [Wed, 12 Jul 2006 15:11:47 +0000 (15:11 +0000)]
Fix a small typo.

17 years ago- read new HUD from /sim/hud/path[1] (was: /hud)
mfranz [Tue, 11 Jul 2006 16:09:35 +0000 (16:09 +0000)]
- read new HUD from /sim/hud/path[1]  (was: /hud)
- cosmetics

17 years agodon't let invisible objects prevent dragging (for example: currently
mfranz [Mon, 10 Jul 2006 14:56:07 +0000 (14:56 +0000)]
don't let invisible objects prevent dragging (for example: currently
not shown combobox menus)

17 years ago- unify coding style (though not to the last detail)
mfranz [Mon, 10 Jul 2006 11:36:38 +0000 (11:36 +0000)]
- unify coding style (though not to the last detail)
- remove trailing spaces
- fix mixed indentation (tabs -> 8 spaces)
- throw out braindead FSF coding style that has somehow sneaked in

17 years ago- untangle classes (methods of two classes were interwoven)
mfranz [Mon, 10 Jul 2006 07:59:20 +0000 (07:59 +0000)]
- untangle classes (methods of two classes were interwoven)
- fix mixed indentation (tabs converted to 8 spaces)
- remove trailing spaces

17 years agoTime initialization fixes. 1) Offset types "system-offset", "gmt-offset",
durk [Sun, 9 Jul 2006 08:02:47 +0000 (08:02 +0000)]
Time initialization fixes. 1) Offset types "system-offset", "gmt-offset",
and "latitude-offset" should not use a precalculated value of warp.
2) Since the values of cur_time and crrGMT are identical in the current
version of the SGTime class, the calculations of the "system", "gmt", and
"latitude" are re-evaluated and updated where necessary.

18 years ago- more <tape> fixes
mfranz [Thu, 6 Jul 2006 21:46:50 +0000 (21:46 +0000)]
- more <tape> fixes
- make ladder numbers symmetrical (hackish)
- fix font BBox/str_width calculation

18 years agofix <modulo> feature (required for the compass tape)
mfranz [Thu, 6 Jul 2006 16:46:25 +0000 (16:46 +0000)]
fix <modulo> feature (required for the compass tape)

18 years agowarning-- (not that it matters -- this code has yet to be converted)
mfranz [Thu, 6 Jul 2006 14:43:41 +0000 (14:43 +0000)]
warning--  (not that it matters -- this code has yet to be converted)

18 years ago- fix unzoomed tapes (TODO: restore tick length)
mfranz [Thu, 6 Jul 2006 14:30:18 +0000 (14:30 +0000)]
- fix unzoomed tapes (TODO: restore tick length)
- get rid of braindead "struct Rect", where top meant y, and bottom meant height
- cleanup^3

18 years agoset altitude AGL
mfranz [Thu, 6 Jul 2006 14:24:14 +0000 (14:24 +0000)]
set altitude AGL

18 years ago- cleanup of the day (more finegrained change history in my local cvs)
mfranz [Wed, 5 Jul 2006 22:55:33 +0000 (22:55 +0000)]
- cleanup of the day (more finegrained change history in my local cvs)
- <damp>ing coefficient is now 1.0 - 1.0 / pow(10, damp)

18 years agoremove redundant vector::clear(). A just created vector *is* clear.
mfranz [Wed, 5 Jul 2006 09:39:46 +0000 (09:39 +0000)]
remove redundant vector::clear(). A just created vector *is* clear.

18 years agoRemove MSVC warnings
fredb [Wed, 5 Jul 2006 06:28:37 +0000 (06:28 +0000)]
Remove MSVC warnings

18 years agoWin32 fixes
fredb [Wed, 5 Jul 2006 06:22:05 +0000 (06:22 +0000)]
Win32 fixes

18 years agoStefan Seifert:
mfranz [Tue, 4 Jul 2006 23:29:05 +0000 (23:29 +0000)]
Stefan Seifert:
- read bindings from template
- automatic deadband detection

mf:
- write js name into output file
- poor man's progress bar during deadband detection
- fix header inclusion, fix mixed indentation

18 years ago- collect drawing primitives in the Item base class
mfranz [Tue, 4 Jul 2006 21:04:22 +0000 (21:04 +0000)]
- collect drawing primitives in the Item base class
- rename circle to draw_bullet, which is more correct

18 years ago- don't store immutable states as strings (sigh!)
mfranz [Tue, 4 Jul 2006 17:25:14 +0000 (17:25 +0000)]
- don't store immutable states as strings (sigh!)
- class members start with underscore

18 years agoinitialize HUD class and call its drawing routine from renderer
mfranz [Tue, 4 Jul 2006 15:54:41 +0000 (15:54 +0000)]
initialize HUD class and call its drawing routine from renderer
(basically a NOOP if /sim/hud/visibility[1] is false)

18 years agoadd new HUD to build system
mfranz [Tue, 4 Jul 2006 15:52:09 +0000 (15:52 +0000)]
add new HUD to build system

18 years agonew HUD (work in progress)
mfranz [Tue, 4 Jul 2006 15:32:55 +0000 (15:32 +0000)]
new HUD (work in progress)

18 years agomake clear that "Failed to find runway ..." doesn't have fatal consequences
mfranz [Sat, 1 Jul 2006 16:00:27 +0000 (16:00 +0000)]
make clear that "Failed to find runway ..." doesn't have fatal consequences

18 years agoPatch from Mathias: unify the AGL altitude with the other FDMs, but preserve the...
andy [Mon, 26 Jun 2006 17:59:58 +0000 (17:59 +0000)]
Patch from Mathias: unify the AGL altitude with the other FDMs, but preserve the distance-to-touchdown metric in the gear-agl properties.

18 years agoadd GSDI (Ground Speed Drift Angle Indicator) instrument for helicopters
mfranz [Sun, 25 Jun 2006 12:36:19 +0000 (12:36 +0000)]
add GSDI (Ground Speed Drift Angle Indicator) instrument for helicopters

18 years agocosmetics:
mfranz [Sat, 24 Jun 2006 07:48:05 +0000 (07:48 +0000)]
cosmetics:
- fix indentation
- remove trailing spaces

18 years agoJosh BABCOCK:
mfranz [Sat, 24 Jun 2006 07:43:09 +0000 (07:43 +0000)]
Josh BABCOCK:

"Here is a patch that allows marker beacon volume to be set via
/instrumentation/marker-beacon/volume."

18 years agoVivian Meazza:
curt [Sat, 24 Jun 2006 03:42:30 +0000 (03:42 +0000)]
Vivian Meazza:

I attach 2 new files and a diff file for the associated changes to add a
“fluxgate compass” to the instrument inventory. Whist this outputs
essentially the same data as /orientation/heading-magnetic-deg, it has to
be powered, and can be made to fail. I also followed Roy’s suggestion to
generate the error properties for this instrument here rather than in
xmlauto.xml.

When this instrument is included in cvs, I intend to use it in the Hunter,
A4F Seahawk and KC135. After a bit more research, it might be appropriate
for the Spitfire and Hurricane as well. AJ would also like to use it for his
Lightning model.

18 years agoCreate a "passive" mode for the autopilot. This is analogous to running the
curt [Sat, 24 Jun 2006 00:52:20 +0000 (00:52 +0000)]
Create a "passive" mode for the autopilot.  This is analogous to running the
autopilot with the servos off.  In otherwords, the computer goes through the
motions of computing the desired behavior (pitch or roll) but doesn't actually
drive the outputs.  This is potentially useful when implimenting a flight
director.

18 years ago- Make two variable name modification to clarify units: altitude -> altitude_ft
curt [Sat, 24 Jun 2006 00:00:27 +0000 (00:00 +0000)]
- Make two variable name modification to clarify units: altitude -> altitude_ft
  and tgt_altitude -> tgt_altitude_ft.  Also fix a comment in AIBase.hxx
  indicating that the altitude is in meters, even though the usage throughout the
  code was most definitely feet.

- In AIMultiplayer.cxx, update the altitude_ft variable so that the altitude
  is reported correctly in the entity's property subtree.

- In AIMultiplayer.cxx, compute a velocity value in kts to fill in the speed
  entry in the entity's property subtree.  Note, this is not an earth centered
  reference speed, not an indicated speed and not a speed relative to the local
  airmass (that would be much harder to do.)

18 years agook, so the old ~FGFontCache() was useless. But at least it didn't call
mfranz [Thu, 22 Jun 2006 08:35:50 +0000 (08:35 +0000)]
ok, so the old ~FGFontCache() was useless. But at least it didn't call
the buggy ~fnt(), causing an abort() ...   ;-)

(Only loaded texture fonts (*.txf) have a new'ed puFont. The built-in
pixmap fonts don't, and may, thus, not be deleted.)

18 years agoExisting ground track estimation code depended on current_value - last_value
curt [Wed, 21 Jun 2006 21:23:20 +0000 (21:23 +0000)]
Existing ground track estimation code depended on current_value - last_value
each frame.  However, often these values didn't change leading to bogus data
getting introduced into the computational pipeline.

This patch switches to a much more sane method for ground track computation.

18 years agooh, and by the way: this destructor didn't do anything useful :-)
mfranz [Wed, 21 Jun 2006 21:17:21 +0000 (21:17 +0000)]
oh, and by the way: this destructor didn't do anything useful  :-)

18 years agoumm ... fix a tiny leak :-)
mfranz [Wed, 21 Jun 2006 19:53:47 +0000 (19:53 +0000)]
umm ... fix a tiny leak  :-)

18 years ago- auto_ptr.hxx: not used anywhere; functionally replaced by
mfranz [Wed, 21 Jun 2006 09:36:15 +0000 (09:36 +0000)]
- auto_ptr.hxx:    not used anywhere; functionally replaced by
                   simgear/structure/SGSharedPtr.hxx
- fg_stl_config.h: only used by obsolete auto_ptr.hxx

18 years agoVivian MEAZZA:
mfranz [Mon, 19 Jun 2006 10:00:25 +0000 (10:00 +0000)]
Vivian MEAZZA:

"Bugfix - a fix to fix the hack which hacked the TACAN Channel/freq
pairing."

18 years agoset blend mode back to make 2D panels opaque when used with transparent HUDs
mfranz [Sat, 17 Jun 2006 19:09:38 +0000 (19:09 +0000)]
set blend mode back to make 2D panels opaque when used with transparent HUDs

18 years agogetGMTstring: remove leading space, cleanup
mfranz [Sat, 17 Jun 2006 18:25:12 +0000 (18:25 +0000)]
getGMTstring: remove leading space, cleanup

18 years ago- add direction letter to numeric mode, too
mfranz [Sat, 17 Jun 2006 18:08:53 +0000 (18:08 +0000)]
- add direction letter to numeric mode, too
- avoid negative sign on 0.00

18 years agoremove lon/lat string representation generating functions; this is now
mfranz [Sat, 17 Jun 2006 16:40:51 +0000 (16:40 +0000)]
remove lon/lat string representation generating functions; this is now
done in Main/fg_props.cxx and available via /position/{long,lat}itude-string

18 years agoremove obsolete "lon/lat format" commands that have been labeled "deprecated"
mfranz [Sat, 17 Jun 2006 16:37:33 +0000 (16:37 +0000)]
remove obsolete "lon/lat format" commands that have been labeled "deprecated"
and "will very soon be removed" since years

18 years agomove generation of lon/lat string representations here from cockpit.cxx.
mfranz [Sat, 17 Jun 2006 16:33:00 +0000 (16:33 +0000)]
move generation of lon/lat string representations here from cockpit.cxx.
Thanks to tied functions, this is only executed when the node is read. This
will be done by the old & new HUD code, the latter of which won't have a
special lon/lat mode at all. Instead it will be regular labels that point
to these properties for displaying lon/lat.
   I would have liked to avoid the duplication of code (lon and lat being
basically the same thing), and to avoid using static buffers and all, but
... if anyone wants to make it prettier, go ahead.
   The format is controlled by /sim/lon-lat-format (will be changed if I
find a better place).

18 years ago- remove unused classes lat_label and lon_label (it's the instr_label
mfranz [Fri, 16 Jun 2006 19:29:34 +0000 (19:29 +0000)]
- remove unused classes lat_label and lon_label (it's the instr_label
  that makes the lon/lat labels)

18 years agoAdd a flag that allows the simulator to force "radar" computations even if
curt [Fri, 16 Jun 2006 19:10:20 +0000 (19:10 +0000)]
Add a flag that allows the simulator to force "radar" computations even if
AI aircraft are out of range or the piloted aircraft has no radar system.

These computation include range, bearing, and angular offset relative to the
piloted aircraft.  This gives some external script the control the behavior
of the AI aircraft relative to the piloted aircraft without requiring a radar
system, and without requiring the AI aircraft to be within radar range.

18 years agoThis patch only affects aircraft (AI Models) that have no predefined
curt [Fri, 16 Jun 2006 14:22:21 +0000 (14:22 +0000)]
This patch only affects aircraft (AI Models) that have no predefined
flightplan.  Such aircraft are given some initial conditions that they
fly with.  They proceed on in "freeflight" mode indefinitely.  For example,
there is a refueling demo where the tanker starts at 3000', 280 kts, and
in a 15 degree bank, and then continues to orbit indefinitely.

For these aircraft with no flightplan, I have added several control nodes in
controls/flight that allow a script or menu or external application to set
heading, altitude, bank angle, and speed.  This permits some level of interactive
or scripted control over AI aircraft.

18 years agoCompile again on Win32 platforms
fredb [Fri, 16 Jun 2006 10:17:06 +0000 (10:17 +0000)]
Compile again on Win32 platforms

18 years ago- move FloatToInt() function to simgear/math/fastmath.hxx, renamed to
mfranz [Fri, 16 Jun 2006 09:31:34 +0000 (09:31 +0000)]
- move FloatToInt() function to simgear/math/fastmath.hxx, renamed to
  float_to_int() for consistency reasons
- remove hud_opts.hxx

18 years agoMake more use of SGGeod
frohlich [Thu, 15 Jun 2006 19:16:21 +0000 (19:16 +0000)]
Make more use of SGGeod

18 years ago- make function table and lookup function
mfranz [Thu, 15 Jun 2006 18:09:15 +0000 (18:09 +0000)]
- make function table and lookup function
- make unnamed elements explicitly "[unnamed]"

18 years ago- fix two bugs
mfranz [Thu, 15 Jun 2006 16:03:27 +0000 (16:03 +0000)]
- fix two bugs
- remove yet more unused code
- cosmetics

18 years agoDon't bail out for lon == 180 or lat == 90
frohlich [Thu, 15 Jun 2006 08:55:42 +0000 (08:55 +0000)]
Don't bail out for lon == 180 or lat == 90

18 years agoMore use of SGGeo[dc].
frohlich [Thu, 15 Jun 2006 08:29:43 +0000 (08:29 +0000)]
More use of SGGeo[dc].

18 years agoremove the rest of the static variables (except one); cleanup
mfranz [Thu, 15 Jun 2006 00:21:06 +0000 (00:21 +0000)]
remove the rest of the static variables (except one); cleanup

18 years agoremove readCard() and let the hud_card class read its properties
mfranz [Wed, 14 Jun 2006 23:27:55 +0000 (23:27 +0000)]
remove readCard() and let the hud_card class read its properties

18 years agoremove readCard and let the gauge_instr class read its own properties
mfranz [Wed, 14 Jun 2006 20:39:10 +0000 (20:39 +0000)]
remove readCard and let the gauge_instr class read its own properties

18 years agoremove readRunway() and let the runway_instr class read the properties in
mfranz [Wed, 14 Jun 2006 18:41:36 +0000 (18:41 +0000)]
remove readRunway() and let the runway_instr class read the properties in
the constructor

18 years agoremove readTBI() and let the fgTBI_instr class read its properties
mfranz [Wed, 14 Jun 2006 16:57:38 +0000 (16:57 +0000)]
remove readTBI() and let the fgTBI_instr class read its properties

18 years ago- remove hud.cxx/readLabel and let the instr_label read its properties
mfranz [Wed, 14 Jun 2006 16:23:44 +0000 (16:23 +0000)]
- remove hud.cxx/readLabel and let the instr_label read its properties
- remove unused copy constructor
- fix potential crash bug

18 years agoremove readLadder(const SGPropertyNode *) and make the HudLadder
mfranz [Wed, 14 Jun 2006 12:49:27 +0000 (12:49 +0000)]
remove readLadder(const SGPropertyNode *) and make the HudLadder
constructor read its properties on its own

18 years agoindentation, trailing spaces, ... (cosmetics only); doesn't make
mfranz [Wed, 14 Jun 2006 10:30:10 +0000 (10:30 +0000)]
indentation, trailing spaces, ...   (cosmetics only); doesn't make
the coding style fully consistent yet, but it's good enough for code changes
(mixed tab/space indents, 4 space tabs etc. are a royal pain)

18 years agoremove assignment operators: they aren't used now and won't in the future
mfranz [Tue, 13 Jun 2006 15:00:31 +0000 (15:00 +0000)]
remove assignment operators: they aren't used now and won't in the future

18 years agoindentation, trailing spaces, alignment, ... (to make further work easier)
mfranz [Tue, 13 Jun 2006 14:48:19 +0000 (14:48 +0000)]
indentation, trailing spaces, alignment, ...  (to make further work easier)

18 years ago- fix more cases of scale tick aliasing to get smooth scale movements
mfranz [Mon, 12 Jun 2006 23:27:55 +0000 (23:27 +0000)]
- fix more cases of scale tick aliasing to get smooth scale movements
- remove trailing spaces, fix indentation, unify coding style, ...

18 years agofix ugly aliasing effects in moving scales (caused by integer calculation
mfranz [Mon, 12 Jun 2006 22:27:10 +0000 (22:27 +0000)]
fix ugly aliasing effects in moving scales (caused by integer calculation
of tick coords)

18 years ago- remove trailing spaces
mfranz [Mon, 12 Jun 2006 21:34:47 +0000 (21:34 +0000)]
- remove trailing spaces
- fix indentation, alignment and other formal stuff

18 years ago- remove evil exit()
mfranz [Mon, 12 Jun 2006 15:39:38 +0000 (15:39 +0000)]
- remove evil exit()
- remove "enabled". It's unused, and that's a good thing: it wasn't
  initialized.

18 years agoadd Nasal/Listener hooks for adding/removing AI/MP models. Things like
mfranz [Sun, 11 Jun 2006 15:32:18 +0000 (15:32 +0000)]
add Nasal/Listener hooks for adding/removing AI/MP models. Things like
MP chat or Nasal/xml based radar instruments need that. It uses fgSetString,
because this is in a very "cold path" and shouldn't clutter the AIBase.

18 years agoremove the "ai_model" subsystem manually before the other subsystems
mfranz [Sun, 11 Jun 2006 15:18:48 +0000 (15:18 +0000)]
remove the "ai_model" subsystem manually before the other subsystems
are taken down by the C++ runtime environment. This will later be done
with runlevels. Why would we want to run nasal code in subsystem
destructors? We don't really. But some data structures may use nasal,
which are normally created/destroyed during runtime. And these will
also be destroyed at fgfs exit. In the past things like these didn't
happen, because someone had disabled all subsystem destructors ...

18 years agoModified Files:
frohlich [Sun, 11 Jun 2006 13:34:18 +0000 (13:34 +0000)]
Modified Files:
src/AIModel/AIAircraft.cxx src/ATC/AILocalTraffic.cxx
src/FDM/flight.cxx src/FDM/flight.hxx src/FDM/groundcache.cxx
src/FDM/groundcache.hxx src/Main/fg_init.cxx src/Main/main.cxx
src/Scenery/hitlist.cxx src/Scenery/hitlist.hxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx
Make use of the attached SGMaterial reference userdata on scenegraph
leafs. Make the SGMaterial pointer available to the ground query
routines.

18 years agofix another crash on exit by finally converting the rest of unguarded
mfranz [Sun, 11 Jun 2006 10:21:10 +0000 (10:21 +0000)]
fix another crash on exit by finally converting the rest of unguarded
SGPropertyNode to guarded ones. This is also done for JSBSim/JSBSim.hxx,
for which JSB had given explicit permission a while ago. I postponed that
back then, but now is the time.

18 years agomake sure the "nasal" subsystem is one of the last to be removed. That
mfranz [Sat, 10 Jun 2006 22:24:05 +0000 (22:24 +0000)]
make sure the "nasal" subsystem is one of the last to be removed. That
way it can still process listener code during shutdown.