Skip to content

Releases: mpaperno/MSFSTouchPortalPlugin

Support for setting specific data values in simulator (make Set actions work)

15 Feb 11:46
0fd538a
Compare
Choose a tag to compare

0.6.0-mp (Feb-15-2022)

  • Added support for sending numeric data values to the simulator with the various "Set" actions.
    • Most/all "Set" actions have been broken out into their own separate action types. Since they now have a data field, it doesn't make sense to pair them with actions which don't use them, such as "Increment."
      • Buttons which did not use the old "Set" choices, such as "Increment," etc, will continue to work (although they will still show the old choices in existing TP buttons until replaced with the new versions). However any buttons which relied on the old behavior of the "Set" action value always being 0 (zero) will need to be updated.
    • Simple arithmetic operations (+, -, *, /, %, precedence with ( ), scientific notation) are supported in most of the data fields which can be sent to the sim.
      That means you can do things like 25 * 30, but more interestingly one could use states/variables, like:
      "AP Set Alt. Hold to:" ${value:MSFSTouchPortalPlugin.AutoPilot.State.AutoPilotAltitudeVar} + 1000
      This evaluation could be expanded upon later if there is a need (to include higher math, rounding, etc).
  • Generated documentation updated to include all Action Data attributes and mappings to the actual SimConnect events. Also added SimVar names to the list of States.
  • New TP UI color for MSFS Plugin actions, "MSFS Blue."
  • Action-to-event mapping syntax/scheme somewhat simplified and consolidated, for easier additions and maintenance. Now also allows custom event names (with a dot).
  • Added new actions:
    • AP Set Airspeed Hold Value
    • AP Set Altitude Hold Value
    • AP Set Heading Hold Value
    • AP Set Mach Hold Value
    • AP Set Vertical Speed Hold Value
    • Magneto Switch 1/2/3/4 Set Position (0-4)
    • Propeller All/1/2/3/4 Set Pitch Lever Value (0 to 16383)
    • Throttle All/1/2/3/4 Set (-16383 - +16383)
    • Engine 1/2/3/4 Anti-ice Switch Set On/Off
    • Aileron Trim Set % (-100 - +100)
    • Ailerons Position Set (-16383 - +16383)
    • Elevator Trim Set (0 - 16383)
    • Elevator Position Set (-16383 - +16383)
    • Elevator Increment Up/Down
    • Rudder Trim Set % (-100 - +100)
    • Rudder Position Set (-16383 - +16383)
    • Flaps Position Set (0 - 16383)
    • Spoilers Position Set (0 - 16383)
  • Modified actions:
    • Toggle Flight Director removed useless choice selector with the one "toggle" option (there are no SimConnect events for specific on/off), BREAKS CURRENT BUTTONS
    • Vertical Speed Hold added On/Off choices (in addition to Toggle which was the only one)
    • Vertical Speed Value removed "Set Current" choice since there's no such Sim event to map to
    • AP Nav Mode Switch 1/2, which never worked, now takes a value of 1 or 2 (that's how we have to set it up for now)
    • Toggle All Magnetos - added new "Select for +/-" choice
    • Engine Anti Ice Toggle removed Set choice (new action, above) which left only Toggle as 2nd choice, so that was removed BREAKS CURRENT BUTTONS
    • Held Action Repeat Rate changed entirely, can now be Set to a specific value or Increment/Decrement by any step amount (in ms) BREAKS CURRENT BUTTONS
  • Modified states:
    • Plugin.State.Connected added "connecting" status which is active while SimConnect is not connected but is trying to be. "false" now indicates that it is disconnected and no attempts are being made to connect. POSSIBLY BREAKS CURRENT BUTTONS if they rely on the "false" status.

For some hints on using the new Set commands, check out the wiki page Tips And Tricks For Setting Simulator Values.

Full Changelog: 0.5.4-mp...0.6.0-mp

Support for held (repeating) actions, new features, fixes.

09 Feb 02:20
e69e879
Compare
Choose a tag to compare

0.5.4-mp (Feb-08-2022)

  • Added support for "On Hold" type Touch Portal actions with a configurable repeat time.
    All current actions which may make sense to repeat (such as for control surfaces or AP adjustments) should now be available in the "On Hold" TP button configuration page.
    The generated documentation now shows which actions can be held.
    • Note that "On Hold" actions do not trigger upon first button press, you need to configure an "On Pressed" action as well, which is a bit more setup but is more flexible
      in case a single press should do some different action.
  • Added support for Touch Portal plugin Settings (in the TP Settings -> Plug-ins -> MSFSTouchPortalPlugin page).
  • Added setting to control automatic connection to SimConnect upon TP (or plugin) startup. When disabled, connectin must be made manually via the existing Connect action.
  • Fixed issue with re-connecting to SimConnect automatically despite user's Disconnect/Toggle Off action.
  • Fixed text values like ATC ID and Aircraft Title not updating properly after the first time. #42
  • Fixed/changed light switch states to only reflect switch status, not the light OR switch being on. #5
  • Fixed that Elevevator Trim Position (degrees) was actually reporting the percentage-open value (percents also added, see below).
  • More robust recovery (reconnection) in case of (some) unexpected SimConnect errors.
  • Fixed generated documentation to include all TP States per category. It now also includes settings information.
  • Less verbose logging by default, with more control via appsettings.json file (changes in config reflected w/out restarting the plugin).
  • General performance and stability improvements.
  • Added new actions:
    • Propeller Pitch Adjust All/1/2/3/4 Incr/Incr Small/Decr/Decr Small/Min/Max/Feather Switch
    • Selected value (knob) increase/decrease (eg. for autopilot settings, same as +/- keys)
    • Held Action Repeat Rate, Increment/Decrement 50ms or choose one of several presets.
  • Added new states:
    • Ele/Ail/Rud Trim angles in Percent
    • Cowl Flaps 1-4 Opened Percentage
    • Propeller 1-4 Feather Switch and Feathered State
    • Deice and Pitot Heat switch states for Panel, Structural, Windshield, and Pitot 1-4
    • Current Held Action Repeat Rate (in ms)