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.

DREF for trim?

Featured Replies

Hi All,

Is there a DREFs that relay the trim button status of a joystick.

I have a plugin that runs its own physics engine and I want to know when the user is providing a commanded trim deflection.  Preferably the joystick button status i.e. 1=command pitch 0=nothing rather than a trim deflection angle.

Any help appreciated.

Cheers.

  • Author

EDIT: I have found "sim/flight_controls/pitch_trim_down" in the joystick configuration however calling this DREF returns nothing 

Like this one?

sim/joystick/joystick_button_values

Friendly reminder: WHITELIST AVSIM IN YOUR AD-BLOCKER. Especially if you're on a modern CPU that can run a flight simulator well. These web servers aren't free...

13 hours ago, bawaters said:

EDIT: I have found "sim/flight_controls/pitch_trim_down" in the joystick configuration however calling this DREF returns nothing 

That's a command (= input), not a dataref (= output).

In xlua scripts, commands can be wrapped to provide new functionality, so you can basically intercept any default command and run it through some logic to feed one of your external FM's datarefs. But I'm not sure sure if that's what you want.

Edited by Bjoern

7950X3D + 7900 XT + 64 GB + Linux | 4800H + RTX2060 + 32 GB + Linux
My add-ons from my FS9/FSX days

Archived

This topic is now archived and is closed to further replies.

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.