Jump to content
Sign in to follow this  
flyforever

program rotary enconder to rotary switch

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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
  • Upvote 1

LORBY-SI

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...