-
-
Notifications
You must be signed in to change notification settings - Fork 4
Tips And Tricks For Setting Simulator Values
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.
16383 * (percent / 100)
or eg. for 5%: 16383 * 0.05
16383 * -0.15
${value:MSFSTouchPortalPlugin.Engine.State.ThrottleEngine1} * 163.83 + 16383 * 0.05
^^^^^^^^ ^^^^^^^^^^^^
Convert % to 0-16383 range. Add 5% of full range.
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.
Increments heading in 5° steps and wraps around to 0 after 355 (due to modulo operator):
(${value:MSFSTouchPortalPlugin.AutoPilot.State.AutoPilotHeadingVar} + 5) % 360
- Home
- Plugin Reference MSFS 20/24
- Plugin Reference FS-X/P3D/SimConnect
- Pages Buttons and Graphics
- Using Custom States and Simulator Variables
- Multiple Touch Portal Device Setup
- Tips And Tricks For Setting Simulator Values
- Reverse Polish Notation Tips
- List of Published Touch Portal Pages for MSFS Plugin
- Using With MobiFlight (outdated)