Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Changes

Jump to: navigation, search

Writing Joystick Code: Part 2

209 bytes added, 11:10, 12 October 2012
no edit summary
U
-----------------------------------------------------------------------------
Aileron Trim trim left NR
interpolate("/controls/flight/aileron-trim", -1, 30 * (1 - getprop("controls/flight/aileron-trim")))
U
interpolate("/controls/flight/aileron-trim", getprop("controls/flight/aileron-trim"), 0)
Aileron trim right NR
interpolate("/controls/flight/aileron-trim", 1, 30 * (1 - getprop("controls/flight/aileron-trim")))
step magnetos
-----------------------------------------------------------------------------
 
If you find a line is too long for your page width, then you can press Enter and go to a new line. FG will be happy - it needs a tag or a ; at the end of a line to tell it that the current line of code is finished.
Notice the choice of place to press Enter, and the indent in the second line. Make it ''easy'' for people to read.
 
-----------------------------------------------------------------------------
 
 
Go back to [[Writing Joystick Code: Part 1]].
 
 
-----------------------------------------------------------------------------
224
edits

Navigation menu