April 29, 20251 yr I would like to assign a 3 way switch to a dial. It has position 0, 1 and 2. When I rotate the dial clockwise, I want it add 1. When I rotate the dial counter-clockwise, I want it to subtract 1. How do I achieve this? I have figured out how to assign 0, 1 or 2 but not how to make it additive. Thank you. Ryzen 5800X3D, 64GB RAM, RTX 4090, Windows 11Link to my: Dynamic Flight Dispatch Tool
April 29, 20251 yr Commercial Member 4 hours ago, toby23 said: to a dial. What kind of hardware dial? What kind of events does it send? Is it a joystick, MIDI - ?? Is it an axis or does it send button events? 4 hours ago, toby23 said: When I rotate the dial clockwise, I want it add 1. When I rotate the dial counter-clockwise, I want it to subtract 1. Add/subtract from what exactly, in what aircraft, in which simulator? There is about a million different ways to code multi-state switches. LORBY-SI
April 29, 20251 yr Author 1. It's a rotary dial on my VIrpil CM3 Throttle by the thumb. I can roll it clockwise one click or counter-clockwise. 2. The switch I want to move has three position, 0, 1 and 2 in MSFS 2024. I can move the switch by assigning 0, 1 or 2 in AAO but I cannot figure out how to make it one click clockwise = 1, second click clockwise = 2, third click counter-clockwise = 1 etc I hope that is clearer. Ryzen 5800X3D, 64GB RAM, RTX 4090, Windows 11Link to my: Dynamic Flight Dispatch Tool
April 29, 20251 yr Commercial Member 24 minutes ago, toby23 said: 1. It's a rotary dial on my VIrpil CM3 Throttle by the thumb. I can roll it clockwise one click or counter-clockwise. 2. The switch I want to move has three position, 0, 1 and 2 in MSFS 2024. I can move the switch by assigning 0, 1 or 2 in AAO but I cannot figure out how to make it one click clockwise = 1, second click clockwise = 2, third click counter-clockwise = 1 etc I hope that is clearer. 1. And what does that send to AAO? Two different joystick button numbers? The issue here is this - if it sends button events, then you only have that one single tiny click in each direction to go left or right. That can by quite frustrating in actual operation. Axis are better suited for this kind of thing (like the MIDI rotary encoders on the X-Touch) 2. Every aircraft developer does things differently in MSFS (20 and 24). There is no "one size fits all", every single button/knob/lever has to be analyzed to find out exactly how this particular developer coded it. Only then you can think about how to control it with AAO. Without specific information about what knob in which aircraft and what simulator we are talking about, I can't even afford an opinion. In MSFS24, chances are, that it is controlled by an Input Event - and in that case you have Inc and Dec Bvars at your disposal and assignemt is really easy. But there are many other ways that this could work... LORBY-SI
April 29, 20251 yr Author On the Jetson, you can select 'mode 1,2 or 3, on the left handlebar. This equates to 'economy, normal and fast' mode. I would just like to understand how to assign that using AAO. 'mode 1,2 and 3' are managed by the variable B:FFX_FLIGHT_MODE_Set While I understand how to set 0,1,2 as a parameter/ value to 'activate' 'mode 1,2 or 3', I haven't figured out how to make my button press (rotary dial clicks) add or subtract. Writing this, I think I need to learn RPN to do this and I don't think I can do that. If you understand what I am trying to do, I would appreciate your help. Thanks Ryzen 5800X3D, 64GB RAM, RTX 4090, Windows 11Link to my: Dynamic Flight Dispatch Tool
April 29, 20251 yr Commercial Member 38 minutes ago, toby23 said: While I understand how to set 0,1,2 as a parameter/ value to 'activate' 'mode 1,2 or 3', I haven't figured out how to make my button press (rotary dial clicks) add or subtract. With a BVar, that is simple. Try B:FFX_FLIGHT_MODE_Inc B:FFX_FLIGHT_MODE_Dec assigned to the right turn / left turn. Im most cases, this should work. BVars don't have a fixed name/syntax. They always consist of a fixed name with a "do-word" attached to it, and that can be pretty much anything, depending on context (_Inc, _Dec, _Up, _Down, _Open, _Close, _Toggle etc.) (the name alone can be used for reading from it, but that is for another day) You can enter BVars manually on the button assignment dialog by switching to MAN Edited April 29, 20251 yr by Lorby_SI LORBY-SI
April 29, 20251 yr Commercial Member 43 minutes ago, toby23 said: I think I need to learn RPN Only when you have to deal with LVars, or when _Inc, _Dec don't work. The general principle is alwasy "read variable - add one - write variable". This is simple enough in most cases. Examples: (B:FFX_FLIGHT_MODE) 1 + 2 min (>B:FFX_FLIGHT_MODE_Set) (add one to the BVar and make sure that it stays at or below 2) (B:FFX_FLIGHT_MODE) 1 - 0 max (>B:FFX_FLIGHT_MODE_Set) (subtract one from the BVar and make sure that it stays at or above 0) Edited April 29, 20251 yr by Lorby_SI LORBY-SI
April 30, 20251 yr Author On 4/29/2025 at 8:18 PM, Lorby_SI said: Only when you have to deal with LVars, or when _Inc, _Dec don't work. The general principle is alwasy "read variable - add one - write variable". This is simple enough in most cases. Examples: (B:FFX_FLIGHT_MODE) 1 + 2 min (>B:FFX_FLIGHT_MODE_Set) (add one to the BVar and make sure that it stays at or below 2) (B:FFX_FLIGHT_MODE) 1 - 0 max (>B:FFX_FLIGHT_MODE_Set) (subtract one from the BVar and make sure that it stays at or above 0) Thank you very much for your help. Using this RPN code is the only way to get it to work. The _Inc, _Dec unfortunately require a 0,1,2 value to affect a change. Ryzen 5800X3D, 64GB RAM, RTX 4090, Windows 11Link to my: Dynamic Flight Dispatch Tool
April 30, 20251 yr Commercial Member 1 hour ago, toby23 said: The _Inc, _Dec unfortunately require a 0,1,2 value to affect a change. That doesn't make any sense. In all other instances they work exactly as you would expect. The answer will be in the behavior code of this aircraft, which you can view using the MSFS developer mode. LORBY-SI
April 30, 20251 yr Author Exactly. I believe it is an issue with how the controls were coded, unfortunately. There seem to be a lot of random variables that don't do anything on the Jetson. Appreciate your help solving this. Ryzen 5800X3D, 64GB RAM, RTX 4090, Windows 11Link to my: Dynamic Flight Dispatch Tool
May 1, 20251 yr Commercial Member 8 hours ago, toby23 said: There seem to be a lot of random variables Not sure about that. I'm looking at the Input Events, and there are two handful of them - that seems to be about it, the aircraft doesn't have that many controls to begin with 🙂 Be mindful that on the event selection treelist in AAO only the IEs are read from the sim. The added BVars are invented by AAO to cover the most common bindings - they don't have to exist/work. In this particular case, the Inc/Dec do exist but they do nothing, as you said. Edited May 1, 20251 yr by Lorby_SI LORBY-SI
Create an account or sign in to comment