I have just committed some small changes to JSBSim.cxx (FGJSBSim) that allow 
the update() function to check for, retrieve, and process messages put on the 
message queue by JSBSim. This could have a lot of uses and I want to try it out 
and see how it feels. For one, when the gear either touches or lifts off the 
runway (or makes other contact), i.e. WOW toggles, and puts a message on the 
queue saying such. The message structure is shown in the latest version of 
FGJSBBase.h. This might also be useful for passing information to the user 
where the GUI can e.g. freeze the sim and pop up a window saying "You died!" or 
something.

Currently, I have added some rudimentary crash detection and will improve this 
a lot in coming days. Right now, if you descend to rapidly (way too rapidly) 
you will set off the crash flag and put the FDM into freeze. Also, the 
messaging system will kick into action and send a crash message to FGFS. 
Selecting "Reset" from the FGFS menu will *almost* reset you.

I'd like to consider using this to send the sound manager events of interest, 
but a protocol for message passing must be reached.

Jon



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to