david [Thu, 16 Jan 2003 18:06:27 +0000 (18:06 +0000)]
Started a new FGMenuBar class to handle a different XML-configurable
menubar. This one allows regular command bindings, with the
(temporary) condition that every menu item must have a unique text
label. The new menubar is disabled by default; to enable it,
configure --with-new-menubar.
curt [Sun, 12 Jan 2003 23:28:21 +0000 (23:28 +0000)]
Added a "mini fdm" output. This could (for example) be useful for an
external gui if it wanted to monitor some key sim position/orientation
varialbles without saturating the net with the full slate of fdm data
@60hz.
david [Sat, 11 Jan 2003 16:30:32 +0000 (16:30 +0000)]
Added simple proof-of-concept support for running PSL scripts from
input bindings. They will work only with the latest CVS; otherwise,
./configure will disable them. There is a new command, 'script',
which takes a single argument, also called 'script', containing PSL
code (currently PSL requires a main() function).
Erik Hofman has written some more elaborate code for triggering PSL
code from drop-down menus and scheduling events; I will look at
integrating that next.
david [Sat, 4 Jan 2003 18:47:25 +0000 (18:47 +0000)]
Patch from Julian Foad to fix wrapping behaviour for property-adjust
and property-multiply:
Firstly, change back to wrapping modulo the interval, with "min <= x <
max" semantics. I believe the previous implementation did that. The
inline function that Norman mentioned also does that.
Secondly, make it snap to the nearest value (min + N*resolution) when a
"resolution" tag is present, taking special care of floating-point
precision. Or perhaps specify "number of divisions in the interval" as
an integer, instead of "resolution" by which I meant a floating-point
"size of a division".
[also fixed]
While working on this file I noticed some potentially serious warnings:
fg_commands.cxx: In function `bool do_property_adjust(const
SGPropertyNode*)':
fg_commands.cxx:435: warning: control reaches end of non-void function
fg_commands.cxx: In function `bool do_property_multiply(const
SGPropertyNode*)':
fg_commands.cxx:465: warning: control reaches end of non-void function
/usr/local/include/simgear/misc/props.hxx: At top level:
fg_commands.cxx:600: warning: `bool do_presets_commit(const
SGPropertyNode*)' defined but not used
david [Tue, 31 Dec 2002 01:15:59 +0000 (01:15 +0000)]
Require /sim/rendering/experimental-lighting to be true before using
experimental lighting rendering (which is very expensive on my
machine, for example). To use distance attenuation,
/sim/rendering/distance-attenuation must also be true.
david [Mon, 30 Dec 2002 21:49:56 +0000 (21:49 +0000)]
Distance attenuation patch from Erik Hofman:
It adds a command line options to enable/disbale distance attenuation
using a property rather than using a #define inside the code. It also
adds a small change for systems that don't support the OpenGL extension,
so that the lights *do* fade away as they get furher away but they don't
get smaller in size.
david [Mon, 30 Dec 2002 21:34:46 +0000 (21:34 +0000)]
IRIX/MipsPro patches from Erik Hofman:
This patch adds some missing default ISO C++ headers to SimGear,
especially usefull for Irix/MipsPro. To the best of my knowledge this
only affects the Irix/MipsPro compiler combination although it might be
usefull for others as well.
This patch does not yet remove any compiler specific code, but that
would be my next task. The powerfull macros as defined in the compiler.h
file allowed me to split it up into multiple patches.
david [Mon, 30 Dec 2002 19:50:17 +0000 (19:50 +0000)]
Removed the (apparently unused) 'factor' and 'offset' arguments from
property-adjust.
Modified property-adjust and property-multiply so that they always
work with double values, to simplify the code.
Factored out some common code.
Added a 'mask' argument to the property-adjust and property-multiply
commands. If mask is set to "all" (the default), then the command
works as before; if mask is set to "integer", it works only to the
left of the decimal point; and if mask is set to "decimal", it works
only to the right of the decimal place. This functionality is useful
for tuning VHF COM and NAV radios.
david [Sun, 22 Dec 2002 19:52:26 +0000 (19:52 +0000)]
Reworked the XML-configurable GUI to use the same binding structure as
the keyboard, joystick, mouse, and 2D panel. Exposed methods for
applying and updating property values in GUI fields.
daveluff [Thu, 19 Dec 2002 12:26:10 +0000 (12:26 +0000)]
Make AI traffic more robust to not getting a list of runway exits - it is now simply removed from view at the end of the landing roll instead of stackdumping if no exits are returned
daveluff [Tue, 17 Dec 2002 17:19:14 +0000 (17:19 +0000)]
First draft of an ATC dialog box, mostly copied from the autopilot new heading dialog box code. Need to bind a key to the ATC-dialog command to bring it up.
andy [Thu, 12 Dec 2002 02:15:06 +0000 (02:15 +0000)]
Changing the thresholds to be bigger in the previous patch isn't
really useful unless we simultaneously change the per-iteration deltas
to be smaller. Add another pseudo-tunable to control the speed with
which we change values across iterations. As it turns out, this is
much more effective than the threshold tunable. It does come at the
cost of lower solution performance, however.
andy [Wed, 11 Dec 2002 22:58:47 +0000 (22:58 +0000)]
Put in some (currently compile-time) tuning for the solver threshold.
A recent change resulted in the Piper Cub oscillating about its
correct solution.
curt [Fri, 6 Dec 2002 22:29:46 +0000 (22:29 +0000)]
- Change the global_tile_mgr to a globals->get_tile_mgr() which is
dynamically created at run time.
- Further clean ups to the FGTileMgr class interface.