Using listeners and signals with Nasal: Difference between revisions

Jump to navigation Jump to search
Line 225: Line 225:


=== Nasal code coupled to the autopilot system ===
=== Nasal code coupled to the autopilot system ===
{{Callback Disclaimer}}


Some people have a need to run Nasal code at the same rate as the simulation/FDM. Currently, without modifying the source code for FlightGear, the only way to do this is to find a property updated at the right time in the simulation cycle and set a listener on it. From a code quality standpoint, this is less than ideal.
Some people have a need to run Nasal code at the same rate as the simulation/FDM. Currently, without modifying the source code for FlightGear, the only way to do this is to find a property updated at the right time in the simulation cycle and set a listener on it. From a code quality standpoint, this is less than ideal.

Navigation menu