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.

Interrogating joystick left-right position (NOT aileron position) in a C or XML gauge

Featured Replies

How can I interrogate the left-right position of the joystick?  I want to make some gauge code that will record the bank angle when the joystick is centred and maintain it until the joystick is moved a given minimum deflection away from centre, as part of some code for simulating autopilot Control Wheel Steering.

Which parameters do I need, either native C parameters, or XML parameters I can get in C using execute_calculator_code?

Thanks a lot, if anyone can help,

George

  • Author

That could help except that it's in C++ -- what things do I need to change in my C gauge programming to convert it to C++ (other than to change the .c extensions on the files to .cpp)?

These vars return yoke X/Y values irregardless of autopilot settings etc.. They are the raw input values to FS from the joystick

 

(A:YOKE X INIDICATOR, number)

(A:YOKE X POSITION, number)

 

(A:YOKE Y INIDICATOR, number)

(A:YOKE Y POSITION, number)

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

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.