![]() These do not have optional settings, after all you want a smooth linear response. Throttle, propeller-pitch, mixture and carburetor-heat. Don't forget to change the the name between and. As you move them to their extreme positions, their value gradually increases (decreases) to +1.0 or -1.0, depending on the direction of movement.Īnd not faster in any way, therefore I prefer using power since it's then easier to change the value if needed.įor aileron and rudder you replace >/controls/flight/elevator with /controls/flight/aileron and /controls/flight/rudder. For a start, all three these axes have a center-zero action. The optional lines need quite a bit of explanation. All the other lines are for the benefit of FG. The other lines are compulsory.Įlevator let's us know that this axis controls the elevator. Not necessary to specify the button number again, as you can't use inside another section.Īxes are the controls on a joystick which con be moved over a whole arc of operation.Įven though the hat hat-switch is classed as an axis, for the purpose of writing code for it, it is a set of buttons. Lines 9 to 13: Same as above, except that it refers to what happens when the button is released. The up part co9mes from the idea of pushing a button down, and it moves up when you take your finger off it. Line 8: (Modification up.) This is the start of the section to handle what happens when the button is released. Line 7: The end of what happens when the button is pressed. Here there is only one command, but there can be many. ![]() The text between and are the nasal commands to be performed. Line 5: nasal means that the following line(s) is(are) written in the programming language nasal. Notice that there can be a few lines before the tag. ![]() Line 4: This is the start of the code which defines what happens when the button is pressed. If repeatable is false, the button action is one-shot, and won't execute again until the button is released and pressed again. Line 3: true means that as long as the button is held in the following action will be executed. Line 2: A (short) description of what the button does. Line 1: specifies that this is the code for a button, and the n="4" means that this is the code for the button which your system reports as number 4. Ignoring the actual meaning of the code, let's got through it line by line. 1 2 Gear up 3 false 4 5 nasal 6 controls.gearDown(-1) 7 8 9 10 nasal 11 controls.gearDown(0) 12 13 14
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |