120 Degree switch

  • A fine thought master but there is one problem, the switch also needs to be in the centre position for when the flaps are fixed. In a nut shell there are 3 inputs needed with the fourth being the fixed. So what we have are two manual operations (open and closed) and auto option and a fixed setting where ever the manual settings has positioned it and it is then de-energised (a safety lock I guess)

    With the logic you suggest the fixed could effectively be written out using the knob but the animation is the sticking point. The manuals are also spring loaded to reset back to the fixed position. =O

    • New
    • Official Post

    Ok so the primary function is auto or fixed (center), right? Then I would implement that first as an input switch. Then you can add a rocker switch function which uses the Direction2 property in the controls.tmd (check out the flight stick and/or hat switch of the F18 for example).

    Whenever the rocker switch is moved you can then reset the normal auto/fixed switch using the Events of the switch.

    The more difficult part will be the animation and the VR compatibility.

    If you send me the files I can take a look at it and post an example.

  • In my other sim I had a CH Throttle Quad, which has six 'rocker buttons' spring loaded to a centred position. I mapped one to Mags Both in the defaut/centred position. Up (while held) was Mags Off, and down was Start Engine (in case I held it up for too long.) This was for flying rotary engined craft, like the Camel.

    Now in my AFS4, I have a Logitec yoke with the elevator trim button/slider mapped Up or Down, while held, and holding the new setting when returned to the spring-loaded centred position for neutral.

    My coding skills are pretty rusty these days, but it seems to me the coding for those switches must be very similar to what Larry is looking for.

    ATB

    MikeW

  • Afternoon Master and apologies for the delay, Doctors appointments.

    I have not yet done the coding for this as I was initially stumped as we basically have three switches into one. From what I understand above, a basic input switch and single rocker should enable the logic. As you say the animation is problematic.

    Can we use 3 axis's on a single graphical switch ? ie change the axis of rotation of the switch for each output from the logic. For VR the rocker could be positioned higher and between the open/close and the auto point positioned lower than the actual switch to give them separation.

    From memory, which I admit is rather suspect most of the time these days :/, I believe the KA50 (Blackshark) has similar switches.

  • Yes, you are right, the KA50 has such switches.

    Tschüss, Michael (🍎🚁)

    Configurations:

    - MacBook Pro (16", 2021); Chip: Apple M1 Max; actual macOS || Thrustmaster TCA AIRBUS EDITION: 1x Sidestick, 2x Quadrant, 2x Quadrant Add-On || Pro-Flight-Trainer PUMA X

    - iPad (12,9", 4th Generation, RAM: 6 GB); actual iOS || nimbus steelseries

    • New
    • Official Post

    Afternoon Master and apologies for the delay, Doctors appointments.

    I have not yet done the coding for this as I was initially stumped as we basically have three switches into one. From what I understand above, a basic input switch and single rocker should enable the logic. As you say the animation is problematic.

    Can we use 3 axis's on a single graphical switch ? ie change the axis of rotation of the switch for each output from the logic. For VR the rocker could be positioned higher and between the open/close and the auto point positioned lower than the actual switch to give them separation.

    From memory, which I admit is rather suspect most of the time these days :/, I believe the KA50 (Blackshark) has similar switches.

    Yes, you can link any combination of graphics transformations (rotation and translation) in a chain, including three different rotations. It's just a matter of sending the right input angle to each rotation and making the angles mutually exclusive (only one can be non zero).

  • Hi Master

    I have included a simple test switch for your guidance, no addon outputs for the oil cooler itself as yet.. The switch will do everything I need in the way of outputs and at the right angles but with a single problem regarding the animation. It will only work on one animation at a time, the last in the queue is the one animated and the other two before it are ignored. If I comment any two out, the remaining one will work no problems.

    Is there a way to combine these inputs to a single animated switch. A graphical multiplexer I guess.

    Steve

    • New
    • Official Post

    OK, I have it working in the Q400 as my taxi light switch. You'll need to integrate it into your own aircraft somehow :S
    For now I have it set up that you can click the switch to toggle auto/off and use the mouse wheel for manual open/close.

    Please check the pivots, R0 and axes, as I may have accidentally changed them for testing.

    Hint: to chain graphics transformations the transformation needs an "InputTransform" from the previous step. If you add the same property "InputTransform" 3x then only the last one is used. Think of the properties of having just one valid state. If you write the same parameter twice the second value just overwrites what ever came before it. So the first two lines for "InputTransform" in your code did nothing.

    controls.tmd:

    tmd physics:

    and tmd graphics:

  • Once again thanks Master :thumbup::thumbup:

    My logic does work with your graphics entries, nearly, it just doesn't re-centre and we can push on the open and close parts of the panel rather than on the button.

    Just tallied up the switches in the aircraft (so far) a small number of 186, only 88 to go, no wonder its taking FOREVER || and still more to add when I do the side panels. GROAN. Lets not mention buttons, knobs and instruments. Gauges are done.