Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helios Profil AH-64D #783

Closed
Michael3478 opened this issue Dec 28, 2023 · 14 comments
Closed

Helios Profil AH-64D #783

Michael3478 opened this issue Dec 28, 2023 · 14 comments
Assignees
Labels
Delivered Code for this issue is in a generally available Helios Release enhancement New feature or request

Comments

@Michael3478
Copy link

Hi

I'm currently in the process of creating a Helios profile for Apache. It's almost finished so far.

Now I'm still missing the HAT switches, but unfortunately I can't get them to work. Can someone please help me with this? 4 way switch I can't get the bindings???

Which bindings should be set for the 4-way switch?

New interface bindings?

I hope it can help me. Of course I would be happy to make the profile available to Helios users. PLT and CPG work without any problems and I have already completed almost all the switches I need. The viewports, Tedac, KU and displays also fit perfectly and it's fun to fly with a functioning profile. Whether single or Multi, switching between the seats is no longer a problem, as the key files are now assigned to the occupied seat without having to switch in the control settings.

Thanks to Bluefina and Helios for your work here...

greeting

Michael

@BlueFinBima BlueFinBima transferred this issue from BlueFinBima/Helios-Profile-Utilities Dec 28, 2023
@BlueFinBima BlueFinBima transferred this issue from another repository Dec 28, 2023
@BlueFinBima
Copy link

BlueFinBima commented Dec 28, 2023

Hi Michael, I've transferred your issue to a more appropriate repository, and the correct Organisation. There is a Wiki for Helios which has a section about getting help, and your question is probably best asked in Capt Zeen's discord channel since this has the most active grouping of Helios users.
I have not tried to implement a HAT switch myself, however I do recall putting the CPG hat switches into the AH-64D interface, and I was recently reading code from a different profile which mapped a hat's X-Y directions onto discrete positions on a single hidden rotary switch ( I think this was in Captain Zeen's F-16C interface).

I've just checked the interface, and there are functions in the Handgrip Left & Handgrip Right categories.

If there are missing interface functions, then these can be added to the Helios AH-64D JSON interface, or you can list their Arg ID's m in this issue and I can look into adding them.

Hope this helps to some degree.

@BlueFinBima BlueFinBima self-assigned this Dec 28, 2023
@BlueFinBima BlueFinBima added the question Information is requested from the assignee. label Dec 28, 2023
@Michael3478
Copy link
Author

Hello
Many thanks for the quick response. I'll take care of it now and provide a solution to the problem as soon as I have the answer. Unfortunately I couldn't upload any pictures here in my post otherwise it might have been clearer what it was about. The functions have been implemented, but they do not yet work properly.
Thank you again for your quick response.

greeting
Michael

@Michael3478
Copy link
Author

Hi

I've probably found the "mistake". In the bindings, the interface assignment is somehow not correct. That's what I believe. The bindings of the interface have the following assignment:

Trigger Value
Numeric:
1 = Up, 2 = Middle, 3 = Down

Ation Value
Numeric
Position 0 = center, 1=Up, 2 =down, 3 = left, or 4 =right

Trigger value should then look like this::
1 = Up, 0 = center, 3 = Down

The bindings do not fit on all four way switches.

I've posted the "problem" in various forums, but haven't received an answer. Sorry for raising my problem here again, but maybe you have a solution for me.
Man TRK
Binding

greeting
Michael

@BlueFinBima BlueFinBima added Investigation Work is required to scope or classify this issue and removed question Information is requested from the assignee. labels Jan 3, 2024
@BlueFinBima BlueFinBima reopened this Jan 3, 2024
@BlueFinBima
Copy link

I'll investigate when I get some free time. Please let me know if you make progress yourself.

@MedievalBunny
Copy link

MedievalBunny commented Jan 5, 2024

I've always struggled with Four-Way Hats too. I've found that's it's easiest to create each direction as a separate button in the Interface, and then bind them to the individual hat directions. That's not a simple solution though.

Another option, I think, would be for the Interface to build the entire hat as a 5-possition switch, rather than two 3-possition switches. I've not tried that though. If it works that'd be the easiest way.

@MedievalBunny
Copy link

Update: making a 5-possition switch didn't work, so I still think just making everything single buttons works best.

Unless there's a way to make this work with the "Value Source" drop-down? I've never seen any documentation on how that feature works. Or maybe there's something else I'm missing entirely.

@BlueFinBima
Copy link

BlueFinBima commented Jan 6, 2024 via email

@MedievalBunny
Copy link

I gave it a try on the F-16, since I had a profile already built and ready to use for testing.
Building a new 5-way switch in the Interface and trying it out, the result was a mess. and it kept confusing the left/right and up/down movement directions. I suspect the cause is that DCS uses a different id for the horizontal and vertical components of the switch, and I'm not aware of a way to build a single switch with multiple ids.

@BlueFinBima
Copy link

BlueFinBima commented Jan 7, 2024 via email

@Michael3478
Copy link
Author

Hi
I've tried everything in the past few days, but unfortunately without success. The problem with the windshield wiper is that the switch only recognizes 3 positions.
The parking position cannot be used because the switch only recognizes 3 positions.
I then solved this using a key. In the DCS key file, a key combination is assigned to the Park, Off, Lo and Hi functions and then set in the profile editor using “send key”. You then have to repeat the assigned command to change the parking position, which then looks like this:
{LCONTROL}jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj

The other positions OFF, Lo and HI require one key.
Off= {LCONTROL}l
LO = {LCONTROL}k
HI = {LCONTROL}h

I think that when recalling the parking position it needs a momentary switch while the other positions Off, Lo and HI need a toggle. Thank you very much at this point that I am not working on this alone and I am sure that there is a solution for every problem.

Greetings
Michael

@MedievalBunny
Copy link

In the F-16, my solution so far as been to create 4 buttons out of the two 3-possition switches, then bind each direction of the 4-way switch to a button press and release. The code to turn a single 3-way switch into two buttons in the Interface looks like this:

interface code

Which when bound in Helios then looks like this:

helios binds

Repeat the exact same thing for the other direction, so you have 4 buttons total, each with a press and release function.

The windshield wiper switch in the Apache is a rotary switch, so that should work just fine in Helios already. If you have an Input bind the switch in Helios will follow the one in the DCS cockpit. The Park function is not supposed to always stay in place in the Apache, it's only available when certain conditions are met. I don't remember the exact conditions, but it springing back out of Park to Off is an Apache feature, not a Helios bug.

@BlueFinBima
Copy link

BlueFinBima commented Jan 23, 2024

Current plan is to add capability to the existing hat switch control to allow it to function from separate horizontal and vertical inputs. Hopefully this will help reduce the complexity of this.
I'm testing this at the moment.

Recording.2024-01-23.180847.mp4

BlueFinBima added a commit that referenced this issue Jan 23, 2024
…t horizontal and vertical interface elements to be used. #783
@BlueFinBima BlueFinBima added enhancement New feature or request Awaiting Delivery Fixed and awaiting shipment in a new release and removed Investigation Work is required to scope or classify this issue labels Jan 23, 2024
BlueFinBima added a commit that referenced this issue Jan 23, 2024
@BlueFinBima BlueFinBima added Delivered Code for this issue is in a generally available Helios Release and removed Awaiting Delivery Fixed and awaiting shipment in a new release labels Jan 29, 2024
@BlueFinBima
Copy link

Shipped in 1.6.606

@Michael3478
Copy link
Author

Hello

Thanks for your quick help. New Helios is installed and runs without any problems. The switch is inserted and all functions are perfect.
Now I can finish my profile and make it available to the community.
Great job sir.

Greetings
Michael

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Delivered Code for this issue is in a generally available Helios Release enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants