mfranz [Tue, 7 Feb 2006 22:35:22 +0000 (22:35 +0000)]
emit to different message properties:
/sim/messages/{atc,pilot,ai-plane,ground,approach}
These can the be used for differenct screen.log colors and for different
voices. (Aircraft & tutoruals may want to write to /sim/messages/copilot)
mfranz [Sat, 4 Feb 2006 16:37:25 +0000 (16:37 +0000)]
store garbage collector id (again) in the listener class, and free the
handler on destruction. There's no explicit Nasal command for removing
a listener, but deleting the node should fully remove them.
ehofman [Thu, 2 Feb 2006 09:57:33 +0000 (09:57 +0000)]
Vassilii Khachaturov:
Fix the current buggy rain orientation behaviour for the views attached to the
aircraft (while still inheriting bugs with the views attached to anything else).
mfranz [Wed, 1 Feb 2006 23:52:36 +0000 (23:52 +0000)]
panel_io.cxx: if an action doesn't have a button, fire its bindings
immediately and then throw it away; this is useful for initialization
purposes (see dme.xml)
ehofman [Mon, 30 Jan 2006 13:29:49 +0000 (13:29 +0000)]
Durk Talsma:
- Feet to meter conversion mistake (in AI getGround elev)
- Improved ground following code (not yet perfect, but for now no one will
notice it within the marginal altitiude differences at the taxitrack or
runway)
- Exclusion of the "AI" directory witihin data/Aircraft in
main/init/fgSearchAircraft, to prevent AI aircraft to be picked up by the
aircraft search function
ehofman [Mon, 30 Jan 2006 10:54:10 +0000 (10:54 +0000)]
Mathias Fröhlich:
Jon Stockill wrote:
> I've just discovered that when using the null fdm I'm not getting
> updates to /position/ground-elev-m any more. So I can't actually
> retrieve the terrain elevation. Is there somewhere else in the property
> tree I could read this from?
ehofman [Mon, 30 Jan 2006 10:50:28 +0000 (10:50 +0000)]
Mathias Fröhlich:
This patch limits the maximum simtime we do simulation computations for.
That is highly sensible if you run flightgear in valgrind or some realy slow
debug build. In such a case it is possible that flightgear gets totally
unresponsible, because simulation time might increase slower than real time.
That patch introduces a maximum simulation time per rendered frame to limit
that effect.
If the property /sim/max-simtime-per-frame is set to something strictly
positive, the simulation time is limited to that value.
The default is unchanged - no limit.
Anyway, from the point of view of gui responsiveness and responsiveness to
realtime controls like joystick inputs it might be a good idea to limit that
by default to say 1 second. If you have less than 1fps, flightgear is
unplayable anyway and I believe we do not longer need to care for realtime
correctness for that case ...
mfranz [Sun, 29 Jan 2006 16:20:31 +0000 (16:20 +0000)]
set the /sim/signals/reinit property on reinit, so that aircraft code can
attach listeners. Other relevant stuff should go here, too. (/sim/crashed
could be one.)
mfranz [Sat, 28 Jan 2006 16:06:03 +0000 (16:06 +0000)]
restore the uglyness: call the resize callback every frame again, even
though the window wasn't resized. I'm just not adventurous enough for
a cleaner solution in the light of the upcoming release. At least the
xsize/ysize properties aren't set each frame any more, so listeners
work now properly.
mfranz [Sat, 28 Jan 2006 10:40:47 +0000 (10:40 +0000)]
write to /sim/startup/xsize only if the size really changed; likewise for
ysize. This is useful for listeners, e.g. the one that will re-position the
FPS dialog.
mfranz [Sat, 28 Jan 2006 00:10:39 +0000 (00:10 +0000)]
Resizing is done when fg_os{,_sdl}.cxx says so, not in every single frame.
(This defeats the purpose of the resize callback and makes "listening" to
the xsize useless.)
ehofman [Tue, 24 Jan 2006 14:45:13 +0000 (14:45 +0000)]
Mathias Fröhlich:
Incorporating the shared ptr code:
- All scenegraph references from SimGear
- SGMaterial which already had a reference counter uses now that common
infrastructure.
- SGMatModel is now counted.
- SGSoundSample from SimGear
- And the corresponding change for the sound samples in flightgear which fixes
a latent crash if FGBeacon would evern be deleted.
ehofman [Sat, 21 Jan 2006 10:06:09 +0000 (10:06 +0000)]
Jim Wilson:
This patch fixes configure.ac so that when an alternate prefix location for simgear is specified, configure tests for the header file jpegfactory.hxx in that specific location only.
ehofman [Fri, 20 Jan 2006 17:19:01 +0000 (17:19 +0000)]
Integrate a large part of John Wojnaroski's 747 cockpit project.
Erik Hofman:
This patch contains an update to net_ctrls.hxx that adds an extra 100 bytes
(or an equivalent of 25 (u)int32_t types) of reserved space. This could be
used to make the protocol forward and backward compatibel within a certain
scope. Be sure to read the instructions at the begining of the header file
when addinf new variables.
daveluff [Fri, 13 Jan 2006 22:07:50 +0000 (22:07 +0000)]
Fix the crashes on mini-panel and panel-reload with the KLN89, by removing the multiple inheritance and using an empty shell instrument to forward draw commands from the panel to the complex gps subsystem.
curt [Mon, 9 Jan 2006 15:29:24 +0000 (15:29 +0000)]
Add an srand() function to nasal (hooked into sg_srandom_time()).
This helps avoid the problem of always getting the same random number
sequence every time you run a script.
curt [Mon, 9 Jan 2006 02:23:02 +0000 (02:23 +0000)]
Add a do_play_audio_message() function which is tied to the
"play-audio-function" command. This function can be called from internal
code, from nasal scripts, or from external scripts to play a single one-off
wav file. File/audio data is loaded and unloaded on the fly automatically.
curt [Mon, 9 Jan 2006 02:21:04 +0000 (02:21 +0000)]
Additional functionality added to the FlightGear sound fx manager.
Create a queue of one-off wav files. Calling layer can request the system
to play any wav file. The request is thrown at the end of a play queue.
The queue is serviced sequentially so that queued wav files will no longer
overlap. When a sample is finished playing. It is removed from the queue
and deleted from memory. The next remaining request in the queue is then
played.
ehofman [Fri, 6 Jan 2006 09:50:58 +0000 (09:50 +0000)]
Stuart Buchanan:
- Provide a Nasal interface to display simple text messages on the screen
like the ATC display. In fact, I copied the code from the ATCDisplay.cxx
and simply shifted it further down the screen.
curt [Mon, 2 Jan 2006 23:01:45 +0000 (23:01 +0000)]
- Add an "is-valid" property node so other modules can do a quick check if
anything in the nav tree is valid or not.
- Fix an order problem between caching data values and searching for a new
station that could cause odd and unexpected and hard to reproduce results.
curt [Wed, 28 Dec 2005 21:45:43 +0000 (21:45 +0000)]
More reorg and refactoring of the code.
Added a convenience function to estimate the time to intercept the selected
radial give the current heading and speed. This can be useful to a flight
directory to compute the point to switch from armed to coupled mode at just
the right time so the pilot can roll out onto the desired heading on the
desired radial.
Add a first whack at estimating a ground track heading error (difference
between aircraft heading and ground track directon.) This needs more work
and testing.
curt [Wed, 28 Dec 2005 16:53:19 +0000 (16:53 +0000)]
Step #1 of some code refactoring and cleanups. The nav radio code was
written very early in the project and has grown and evolved and been added
onto many times. It is long overdue for a code cleanup/reorg pass.