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.

program rotary enconder to rotary switch

Featured Replies

In one sim aircraft, there's a rotary switch for 6 autopilot modes. Each mode is a fixed detent point on the rotary dial. In real life, an actual 6 position rotary  switch would be used. Is there a way to program a continuous rotary with A&O to simulate a 6 spst  rotary switch?

I don't want to use  6 discreet buttons if it can be done with a single encoder.

thanks

tc

  • Commercial Member
25 minutes ago, flyforever said:

In one sim aircraft, there's a rotary switch for 6 autopilot modes. Each mode is a fixed detent point on the rotary dial. In real life, an actual 6 position rotary  switch would be used. Is there a way to program a continuous rotary with A&O to simulate a 6 spst  rotary switch?

I don't want to use  6 discreet buttons if it can be done with a single encoder.

thanks

tc

What hardware are you going to operate it with? Single button or rotary encoder of some sort? 

If it is a single momentary button, you will have to make a script using the iseq operator. That can be used to toggle through the different positions on a multi-option switch. A rotary encoder, like on the Behringer X-Touch would probably be assigned as an Axis.

But - that all depends entirely on how the switch in the aircraft works. Which one is it exactly?

Edited by Lorby_SI

LORBY-SI

  • Author

it's the x-touch mini, and the aircraft is the JF F28. The rotary switch is located next to the autopilot buttons. I like the idea of using the x touch slider as a rotary switch.

<a href="https://ibb.co/rdt34Qn"><img src="https://i.ibb.co/rdt34Qn/79360-2.jpg" alt="79360-2" border="0"></a>

tc

Edited by flyforever

  • Commercial Member
5 minutes ago, flyforever said:

The rotary switch is located next to the autopilot buttons.

Any idea how it works? LVar, BVar, HVar, InputEvent? (=did you check it out in MSFS developer mode? Is there any documentation from the aircraft developer?)

Edited by Lorby_SI

LORBY-SI

  • Commercial Member

Add an axis in AAO:

Select "Enter Variable" and type/copy "L:F28_MCP_MODE-SEL_Rotary_Switch, enum" into the box (without the quotes)
Set Axis Min to 0 and Axis Max to 5
Set Rounding to "int".
Move the slider on the X-Touch until AAO sees it 
Save

 

Edited by Lorby_SI

LORBY-SI

In Funatics layer system I use

(L:F28_MCP_MODE-SEL_Rotary_Switch, Number) -- (>L:F28_MCP_MODE-SEL_Rotary_Switch, Number)

for rotary left

(L:F28_MCP_MODE-SEL_Rotary_Switch, Number) ++ (>L:F28_MCP_MODE-SEL_Rotary_Switch, Number)

for rotary right

and for reset on the push

0 (>L:F28_MCP_MODE-SEL_Rotary_Switch, Number)

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.