45
edits
(→property-adjust: Example with <wrap> from http://forum.flightgear.org/viewtopic.php?p=217276#p217276) |
(→property-adjust: replaced incorrect "factor" with "step", added comments) |
||
Line 54: | Line 54: | ||
<command>property-adjust</command> | <command>property-adjust</command> | ||
<property>/autopilot/settings/heading-bug-deg</property> | <property>/autopilot/settings/heading-bug-deg</property> | ||
< | <step>1</step> <!-- will add 1 to /autopilot/settings/heading-bug-deg whenever this binding is called --> | ||
<min>000</min> | <min>000</min> <!-- the property will never be allowed to go below 0 --> | ||
<max>360</max> | <max>360</max> <!-- ...or above 360 --> | ||
<wrap>true</wrap> | <wrap>true</wrap> <!-- when we hit 361, wrap back to 0 and vice-versa --> | ||
</binding> | </binding> | ||
</syntaxhighlight> | </syntaxhighlight> |
edits