Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't set TRIM values

Featured Replies

Hope someone can help me, I'm trying to set ELEVATOR TRIM PCT and AILERON TRIM PCT. I'm using something like

simconnect.AddToDataDefinition(DEFINITIONS.ANALCONTROLS, "ELEVATOR TRIM PCT", "percent over 100", SIMCONNECT_DATATYPE.FLOAT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
to set it up and then writing 0.0f in the simconnect.SetDataOnSimObject() call but I get an expection 20, invalid data.C# I'm afraid, has anyone got anything I can try, spot my silly error?TIA PeteP.S. I have AILERON POSITION working as a percent using this technique.
  • Commercial Member

>Hope someone can help me, I'm trying to set ELEVATOR TRIM PCT>and AILERON TRIM PCT. I'm using something likeBy my tests the ELEVATOR TRIM PCT SimVar is not writeable, I'm afraid. You will have to use Sim Event KEY_ELEVATOR_TRIM_SET, which of course uses a joystick-type value, -16384 to +16384.However, the AILERON TRIM PCT and RUDDER TRIM PCT SimVars seem to be writeable okay.RegardsPete

Win10: 22H2 19045.2728
CPU: 9900KS at 5.5GHz
Memory: 32Gb at 3800 MHz.
GPU:  RTX 24Gb Titan
2 x 2160p projectors at 25Hz onto 200 FOV curved screen

  • Author

Thanks Pete.Did you tell MS this? Says settable in the documentation!One thing I have discovered is the Joystick example in the SDK actually returns +-32K not 16K as stated in the docs. Do you know which is the real range?Ta Pete

  • Commercial Member

>Did you tell MS this?Yes, I sent a pair of documents listing all those which were writeable and all which aren't, of those I tested (which were most but not all). Those documents are also available on my Support Forum. I started those back in FSX Beta days and updated them for each release. Mostly they stayed the same but the documentation was changed! ;-)> Says settable in the documentation!Not in my copy it doesn't. Maybe you aren't using the updated documentation in the SP1 SDK release? Either that or you are confusing it with "ELEVATOR TRIM POSITION" which is in radians, not a percent. That is certainly writeable, as marked.>One thing I have discovered is the Joystick example in the SDK>actually returns +-32K not 16K as stated in the docs. Do you>know which is the real range?Which Sim Var? I've not looked at any examples. The values joysticks return depend on their drivers and the Windows calibration. I don't use Simconnect to read joysticks.RegardsPete

Win10: 22H2 19045.2728
CPU: 9900KS at 5.5GHz
Memory: 32Gb at 3800 MHz.
GPU:  RTX 24Gb Titan
2 x 2160p projectors at 25Hz onto 200 FOV curved screen

  • Author

>Not in my copy it doesn't. Maybe you aren't using the updated>documentation in the SP1 SDK release?You're dead right, too many PCT and getting myself confused.>Which Sim Var? I've not looked at any examples. The values>joysticks return depend on their drivers and the Windows>calibration. I don't use Simconnect to read joysticks.The joystick example uses ClientEvents to read joystick:0:XAxis and the other axis. I was only running it as I wanted to see the values. I'm reading the joystick from C# and plan to inject that into FSX but getting the range right is a good starting point ;)Off to look at your support forumCheers PeteEdit: Corrected my reading stupidity!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.