Skip to content

Tips And Tricks For Setting Simulator Values

Max Paperno edited this page Feb 15, 2022 · 5 revisions

Tips And Tricks For Setting Simulator Values

16383

You will see the value +/-16383 appear often, which is a common range for various simulator "set" commands, especially for things like control surfaces and levers. Typically this translates to some percentage value within the simulator (eg. -16383 aileron deflection is 100% to the left, or technically "-100%"). So it usually helps to translate the awkward 16383 value to percentages, as demonstrated in various examples below.

Percentage of 16383

16383 * (percent / 100) or eg. for 5%: 16383 * 0.05

Examples

Set throttle to -15%

16383 * -0.15

Throttle advance in 5% increments

${value:MSFSTouchPortalPlugin.Engine.State.ThrottleEngine1} * 163.83 + 16383 * 0.05
                                                            ^^^^^^^^   ^^^^^^^^^^^^
                                         Convert % to 0-16383 range.   Add 5% of full range.

Adjust AP Hold values by custom stepping

Add 1000' to currently set AP altitude hold value:
    ${value:MSFSTouchPortalPlugin.AutoPilot.State.AutoPilotAltitudeVar} + 1000
The other AP settings work the same, just use the corresponding state variable.

Circular AP heading adjustment with custom stepping

Increments heading in 5° steps and wraps around to 0 after 355 (due to modulo operator):
    (${value:MSFSTouchPortalPlugin.AutoPilot.State.AutoPilotHeadingVar} + 5) % 360