Is it possible to use a axis as a button when shift function is active?

Moderator: AdminGroup

joaquinbaeza
Posts: 23
Joined: Sat Oct 31, 2020 13:11
Has thanked: 4 times
Been thanked: 1 time

Is it possible to use a axis as a button when shift function is active?

Postby joaquinbaeza » Mon Mar 06, 2023 21:40

I want to use a axis as axis in normal function, but it must act as a button when I active shift function. I am not getting how to get it. Thanks.

User avatar
Victorus
Posts: 1677
Joined: Wed Sep 21, 2011 13:25
Has thanked: 374 times
Been thanked: 257 times

Re: Is it possible to use a axis as a button when shift function is active?

Postby Victorus » Mon Mar 06, 2023 23:46

In what axis position? See axis to buttons.
Руководство пользователя по контроллерам VKB (VKB controllers User Guide) Ru&En
https://disk.yandex.ru/d/LlqiYtIrIetBOQ

joaquinbaeza
Posts: 23
Joined: Sat Oct 31, 2020 13:11
Has thanked: 4 times
Been thanked: 1 time

Re: Is it possible to use a axis as a button when shift function is active?

Postby joaquinbaeza » Tue Mar 07, 2023 23:11

For now, it doesn't care the position, I just want to convert an axis into a button when Shift is active.

For example, in DCS Blackshark there are "Wheel Brake" (axis) and "Parking Brake" (button) functions.
I want to use the MCG paddle as "wheel brake" to slow down and stop the helicopter, and after that to activate "parking brakes" using the same paddle but now acting as a button so, to get a double function, I have to configure a button as Shift. Now, how to convert the paddle in a button only while I am pressing Shift, and to act as an axis again when I release the Shift button?.

Ron61
Posts: 3276
Joined: Tue Jan 15, 2013 23:56
Location: г.Минск
Has thanked: 44 times
Been thanked: 637 times

Re: Is it possible to use a axis as a button when shift function is active?

Postby Ron61 » Fri Mar 10, 2023 11:41

You can also use the brake button without Shift. Use the slider to adjust the zone in which the button will start to work. Or is it not suitable?
Brake.png

User avatar
Victorus
Posts: 1677
Joined: Wed Sep 21, 2011 13:25
Has thanked: 374 times
Been thanked: 257 times

Re: Is it possible to use a axis as a button when shift function is active?

Postby Victorus » Fri Mar 10, 2023 15:02

This method (A2B only) can be dangerous. If you accidental move axis to extreme position parking brakes will be on. While velocity is not zero. I think joaquinbaeza is right with separate button to activate parking brake.
Thus begin.
!Note. I have not MCG handy so my example is based on other controller. Your axes and button numbers will differ.
Axis2button function output is button. Button-modifier will convert it to another one. Save one line. Boolean Comparator1 will replace A2B.
Open Profile - Boolean tab. Click first empty slot. Select Comparator1. Layer=1(axis #) (remember, you will assign your. As I remember MCG brake lever is #3).
Treshold = 96 or how near the bound you want to register brake chock. Output = Free! No line number is occupied. Comparator output only.
Comparator96.jpg

Click next slot and select 2AND function. Output will be registered if BOTH inputs are ON. 1st input layer = Physical button 15 - our modifier (Remember.....)). 2nd input is Boolean 1, Free output of comparator. Output = Physical button. Any free. 40 for me.
2AND.jpg

No need to register modifier press as button. Profile - Buttons - Physical layer tab. Click line 15 and select No function.
NoF.jpg

That's almost all. All if in DCS button for parking brake must NOT be pressed all the time, press and forget.
If it must be pressed all breaking time, than make button 40 Button Alt (similar to CapsLock). Click line 40 and select Buttons - ButAlt. Def. State = OFF.
BAlt.jpg

Press SET. See result.
result.jpg
Руководство пользователя по контроллерам VKB (VKB controllers User Guide) Ru&En
https://disk.yandex.ru/d/LlqiYtIrIetBOQ

User avatar
Victorus
Posts: 1677
Joined: Wed Sep 21, 2011 13:25
Has thanked: 374 times
Been thanked: 257 times

Re: Is it possible to use a axis as a button when shift function is active?

Postby Victorus » Fri Mar 10, 2023 15:04

Sorry! I have forgotten about MCG break lever special function! And solved problem in general terms))). Thanks to Ron! You can combine Ron's method with my.
Руководство пользователя по контроллерам VKB (VKB controllers User Guide) Ru&En
https://disk.yandex.ru/d/LlqiYtIrIetBOQ


Return to “Manuals and Howtos”

Who is online

Users browsing this forum: No registered users and 25 guests