Howto:Write simple scripts in Nasal: Difference between revisions

Jump to navigation Jump to search
→‎Crunch Time, or, testing our function=: Fix up little wiki syntax headers glitch
m (Robot: Cosmetic changes)
(→‎Crunch Time, or, testing our function=: Fix up little wiki syntax headers glitch)
Line 51: Line 51:
</pre>
</pre>


==Crunch Time, or, testing our function===
== Crunch Time, or, testing our function ==
Now, we can start FlightGear to test our new function. Start FG in the usual manner with the appropriate aircraft.
Now, we can start FlightGear to test our new function. Start FG in the usual manner with the appropriate aircraft.


Line 76: Line 76:
This listens for the fdm-initialized property to be set (this will happen when the sim has started up), and starts our convertTemp function when that happens.
This listens for the fdm-initialized property to be set (this will happen when the sim has started up), and starts our convertTemp function when that happens.


=== Finishing up ===
== Finishing up ==
As an "exercise for the reader" (I always hate those!) you should make the script also convert the temperature values for the second engine.
As an "exercise for the reader" (I always hate those!) you should make the script also convert the temperature values for the second engine.


Navigation menu