andy [Fri, 19 Dec 2003 02:42:32 +0000 (02:42 +0000)]
Minor API changes to support the new sg_geodesy implementation. A few
places now use sgCartToGeod() instead of rolling their own
approximation. And YASim is now using exactly the same 3D coordinate
system as the rest of FlightGear is.
curt [Tue, 9 Dec 2003 21:05:26 +0000 (21:05 +0000)]
Fix the nmea and garmin output to a) fake a GSA sentence, b) fix a y2k bug
(seriously, my bad), c) fix some issues with the RMC string, d) use proper
line terminators (\r\n), and e) a few other clean ups.
andy [Mon, 8 Dec 2003 02:05:10 +0000 (02:05 +0000)]
Add a new command, "dialog-new", allowing external code (e.g. Nasal
scripts) to create dialogs at runtime. Augment "dialog-close" to take
a name argument, allowing code other than PUI callbacks to close
dialogs.
The changes to the GUI directory to enable this are actually minor,
basically amounting to using SGPropertyNode_ptr reference counting
(the GUI subsystem no longer "controls" the dialog property trees, so
it can't delete them).
ehofman [Sun, 7 Dec 2003 17:39:48 +0000 (17:39 +0000)]
Melchior FRANZ:
Everyone knows that ufos can turn on the spot.
Turn on rudder input at low speeds. (Quite useful when using the
ufo fdm for exploring the scenery.)
andy [Fri, 5 Dec 2003 01:54:39 +0000 (01:54 +0000)]
Turn the __timers garbage collector cache into a more generic "gcsave"
interface, and use it to cache FGNasalScript objects returned from
a new parseScript() method.
Added a rand() function.
Added an interpolate() function interface to the new SGInterpolator
subsystem.
andy [Mon, 1 Dec 2003 01:22:27 +0000 (01:22 +0000)]
Cleanup and refactoring to better integrate the helicopter code into
the core YASim stuff. Mostly cosmetic: whitespace adjustment, dead
code & meaningless comment removal, a little code motion to better
partition the helicopter handling from the original code (no more
giant if() { ... } around the solver). Added a warning to the parser
to try to eliminate the string booleans that crept in.
There should be NO behavioral changes with this checkin.
david [Mon, 24 Nov 2003 17:45:35 +0000 (17:45 +0000)]
Use proper logging facility, and lower the priority of some of the
logging messages. This is part of an effort to make FlightGear a bit
quieter during normal operations.
curt [Mon, 24 Nov 2003 01:50:48 +0000 (01:50 +0000)]
Change the timing semantics slightly so that you get much closer to the
specified logging rate. If you specify 10hz you actually get 10 records
per second rather than 7 or 8 or 9 depending on frame rate and luck.
curt [Fri, 21 Nov 2003 23:35:25 +0000 (23:35 +0000)]
Currently, when the sim pauses, all IO is also halted. To me it generally
makes more sense to keep I/O running. That way remote telnet connections
will still respond, and the sim can still accept and send data. This also
allows a remote script or gui to pause and (more importantly) be able to
the unpause the sim.
curt [Fri, 21 Nov 2003 22:00:46 +0000 (22:00 +0000)]
Tweaks and massages to the ground intersection code. Most of the changes
are cosmetic, but we now have a combination of code that seems to work
very robustly. I was able to land the yf23 at about 130 kts on the lower
level of the bay bridge and then taxi the entire length.
curt [Fri, 21 Nov 2003 03:13:52 +0000 (03:13 +0000)]
Fix a terrain intersection calculating bug. The code wasn't quite handling
traingle strips right ... it was mixing up the vertex ordering slightly.
Oh what the heck, it was really screwing up tristrips. Everything else looks
correct though. :-) Hurray for the red book.
daveluff [Wed, 19 Nov 2003 10:16:26 +0000 (10:16 +0000)]
Fix a nasty bug whereby non-scrolling ATC messages longer than the screen width were not rendered at all. They are now rendered with the end clipped - that can be fixed later.
curt [Mon, 17 Nov 2003 21:10:47 +0000 (21:10 +0000)]
Added code to support a richer switch definition syntax. Currently we only
support an attached property name and an intial state, but this can easily
be extended to configure a switch to be a circuit breaker with a max rating,
etc.
curt [Sat, 15 Nov 2003 05:18:55 +0000 (05:18 +0000)]
Additions to the electrical system model to allow it to back propagate
current draw. This is only one piece of the puzzle, but as we move forward,
the idea is better modeling of the ammeter, and we could automatically pop
circuit breakers if the current gets too high.
curt [Thu, 13 Nov 2003 23:03:49 +0000 (23:03 +0000)]
Gene Buckle:
Patches to allow control of more than 1 (up to 10) ejection seats, and
control them with more flexibility. A particular ejectection seat can be
disarmed or failed, in which case it can't be ejected until it is armed
or fixed.
curt [Mon, 10 Nov 2003 21:59:35 +0000 (21:59 +0000)]
Add a command which will setup the temperature field in the boundary and
aloft layers to match a current OAT at the current altitude. This can be
run from an external script or gui.
Given the specified OAT (and the current aircraft altitude), the code
calculates the equivalent sea level temperature, and then assigns that to
all active boundary and aloft environment layers.
curt [Mon, 10 Nov 2003 21:55:49 +0000 (21:55 +0000)]
I had made a change on 6/24/2003 relating to temperature interpolation.
Upon further review, I was very misguided, and unfortunately no one slapped
my hand at the time.
Factoring in the environment manager's interpolation scheme, it makes complete
sense to specify the sea level temperature at each boundary and aloft layer.
In fact, this is the only way that allows the temperature interpolation to
make sense, especially around the boundary layer. This is confusing stuff,
but it now works perfectly. :-)
cvsguest [Wed, 5 Nov 2003 10:02:34 +0000 (10:02 +0000)]
Fix a nasty bug - FGATC::SetDisplay() should be called *after* FGATC::Init() since display is often initialised to false in the init routine. Also some other bits and pieces.
daveluff [Tue, 4 Nov 2003 11:54:42 +0000 (11:54 +0000)]
Rationalisation of the ATC popup dialog code - moved it all over to AK's dynamic list system and removed the hardcoded list code, extended the dynamic list system a bit, started adding support for callbacks from the user interaction