Jump to content

How do you guys cope with switchguard?


Red Dog

Recommended Posts

DCS chose to enable switch guard with a keystroke.

I personally find this a bad decision as switch guards are mechanic and shouldn't send a keystroke

Being a pitbuilder I have real switch guards in my pit and programmed the switches as any other switches (let's take the SEC/PRI switch for instance)
When I do the sec check, I lift my physical switch guard and activate the switch to SEC.

This work in other sims but not in DCS because the switch guard has to be actioned first either with the mouse or with the relevant keystroke)
That kinda negates the purpose of cockpit building having real switches.
 

I suppose I could add switches to the guards and program them but I find this counter productive and a waste of ressource
Is there any other way to deal with these switch guards mechanic in DCS? 

Thanks for your input

 

Have a Bandit Day

Red Dog

[sIGPIC]

http://www.ravico.com/ST/perso/Sig_generale.png

[/sIGPIC]

Link to comment
Share on other sites

thanks for your answer but as I said:

Quote

I suppose I could add switches to the guards and program them but I find this counter productive and a waste of ressource

 

Considering that many switches are physically locked in the F-16 cockpit, why were the switch guard actions coded this way while the switches lock lever were not? 
Not quite consistent if you ask me.

The Hook switch must be lifted to be moved (as many other) this is a kind of switch guard as well, why are ones implemented and not the others then? 

I hope there's another way to deal with these guards than to add a physical pushbutton to them? 

 


Edited by Red Dog

Have a Bandit Day

Red Dog

[sIGPIC]

http://www.ravico.com/ST/perso/Sig_generale.png

[/sIGPIC]

Link to comment
Share on other sites

The only way I can think of to do it is in software.  Use Joystick Gremlin (which I don't use anymore) to set off a macro when the actual switch is moved.

Set the macro to execute two different vJoy buttons (or keystrokes, your preference) when the switch is each position.  You can then map those vJoy buttons to open the guard then move the switch, and for returning the switch, to move the switch back and after that, close the guard.  You'd have to setup two separate macros for this.

I've done this with my Winwing throttle before.


Edited by RogueSqdn
  • Like 2

DEFENSOR FORTIS

Spoiler

Systems: Falcon NW Talon: Ryzen 9 5950X @4.9GHz, 64GB DDR4, RTX 3090 FE; Falcon NW Mach V: Core i7 3930K @3.2GHz, 32GB DDR3, GTX 1080 FE

Cockpit: MonsterTech MTX F, 42" 4K TV, HP Reverb G2, Oculus Rift S, PointCTRL

Controls: RS F16SGRH CE, RS F18CGRH, VPC T-50CM2, VFX, WarBRD (Grips); VPC T-50CM2, RS FSSB R3L (Bases); Winwing F/A-18C, VPC T-50CM3, VPC T-50CM, TM Warthog, Cougar (Throttles); VPC ACE2 (Rudders)

 

Link to comment
Share on other sites

Thanks RS

made me think ...

program my pit switch (PRI/SEC) with two macro, delayed. 1 for opening the guard, the other to move the switch

and then program two macro for the other position, one to move the switch and then close the guard. That should work preventing this doesn't get in the way

Thanks


Edited by Red Dog

Have a Bandit Day

Red Dog

[sIGPIC]

http://www.ravico.com/ST/perso/Sig_generale.png

[/sIGPIC]

Link to comment
Share on other sites

I have numerous ways to deal with switch guards depending on how the mapping options available.

In the later modules, there is usually a way to move the switch guard and the switch at the same time, reducing the need for a separate input for the guard.

I have the WinWing throttle and control panels, which have lots of 3-position switches. These allow me to open the switch guard, operate the switches, and close the switch guard in most cases without any additional scripting.

So, one option you might consider is using a 3-position switch in place of a guarded 2-position switch, then coming up with a mapping that allows you to operate the switch and toggle the guard position.

  • Like 1

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

So the SEC/PRI switch  looks like a two position switch just switch it out with a three position switch (on) - off or on - on

with the physical switch guard closed the switch will be in the (on) position this can be programed  to the PRI function. 

Open the  physical switch guard the switch will snap in to the center position this will signal  the opening of the  physical switch guard.

Move the Three position switch in to the last on position the signal for the SEC command will be sent. There ya go Hansolo has it working for the KY 58 panel in theA-10

No extra switch necessary the easiest way to work it in my opinion 


Edited by Deadman
  • Like 2

https://www.shapeways.com/shops/a-10c-warthog-supplies

https://forum.dcs.world/topic/133818-deadmans-cockpit-base-plans/#comment-133824

CNCs and Laser engravers are great but they can't do squat with out a precise set of plans.

Link to comment
Share on other sites

I don't have my Winwing throttle installed right now (just flying the Viper), but I'll definitely give the LUA edit a shot!

DEFENSOR FORTIS

Spoiler

Systems: Falcon NW Talon: Ryzen 9 5950X @4.9GHz, 64GB DDR4, RTX 3090 FE; Falcon NW Mach V: Core i7 3930K @3.2GHz, 32GB DDR3, GTX 1080 FE

Cockpit: MonsterTech MTX F, 42" 4K TV, HP Reverb G2, Oculus Rift S, PointCTRL

Controls: RS F16SGRH CE, RS F18CGRH, VPC T-50CM2, VFX, WarBRD (Grips); VPC T-50CM2, RS FSSB R3L (Bases); Winwing F/A-18C, VPC T-50CM3, VPC T-50CM, TM Warthog, Cougar (Throttles); VPC ACE2 (Rudders)

 

Link to comment
Share on other sites

I'm using an Arduino to drive DCS BIOS - here's the steps I use

1: On switch toggle - send DCS status change of cover

2: Set a flag to activate in 200mS or so

3:Let the Arduino do its many loops

4: After the timer has been met send the DCS command to toggle the switch

Link to comment
Share on other sites

I would love to see the way you have done this in the Arduino Sketch, if you have time, @bnepethomas. I have used a few hallsensors and mags on some of mine, but really it’s a pain!

SCAN Intel Core i9 10850K "Comet Lake", 32GB DDR4, 10GB NVIDIA RTX 3080, HP Reverb G2

Custom Mi-24 pit with magnetic braked cyclic and collective. See it here: Molevitch Mi-24 Pit.

 

[sIGPIC][/sIGPIC] www.blacksharkden.com

bsd sig 2021.jpg

Link to comment
Share on other sites

@Red Dog: I have made adds to the "default.lua" for several aircraft to combine the guard and the switch into a single binding. For which aircraft do you build your pit?

  • Like 1

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Link to comment
Share on other sites

Thanks LeCuvier,

I have noticed you worked on that in the How to setup a toggle switch and I have been inspired by this as well.
It's for the F-16 pit
What i did so far is to program two keystrokes on a single switch to raise the guard before enabling the switch macro. And the same when moving the switch back, the guard closes right after.

But any more elegant solution will get my attention 🙂

Have a Bandit Day

Red Dog

[sIGPIC]

http://www.ravico.com/ST/perso/Sig_generale.png

[/sIGPIC]

Link to comment
Share on other sites

1 hour ago, Red Dog said:

Thanks LeCuvier,

I have noticed you worked on that in the How to setup a toggle switch and I have been inspired by this as well.
It's for the F-16 pit
What i did so far is to program two keystrokes on a single switch to raise the guard before enabling the switch macro. And the same when moving the switch back, the guard closes right after.

But any more elegant solution will get my attention 🙂

Question: Do you use maintained ON/OFF switches?
And can you give me a few examples of switches (names of the switch bindings so I can find them)?


Edited by LeCuvier

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Link to comment
Share on other sites

Quote

Question: Do you use maintained ON/OFF switches?

Yes

Quote

And can you give me a few examples of switches (names of the switch bindings so I can find them)?

ENG CONT switch - PRI
ENG CONT switch - SEC

ENG CONT switch Cover - Open
ENG CONT switch Cover - Close

 

others:

EPU switch cover
EPU switch
nice one because you got two separate cover for OFF and ON

and
FUEL MASTER switch + its cover
ZEROIZE swicth cover + its cover

 

Have a Bandit Day

Red Dog

[sIGPIC]

http://www.ravico.com/ST/perso/Sig_generale.png

[/sIGPIC]

Link to comment
Share on other sites

12 hours ago, bnepethomas said:

THANKS! I will take a look.

SCAN Intel Core i9 10850K "Comet Lake", 32GB DDR4, 10GB NVIDIA RTX 3080, HP Reverb G2

Custom Mi-24 pit with magnetic braked cyclic and collective. See it here: Molevitch Mi-24 Pit.

 

[sIGPIC][/sIGPIC] www.blacksharkden.com

bsd sig 2021.jpg

Link to comment
Share on other sites

@Red Dog: I got something working. Please check if that's what you want!
I have added this line to "default.lua":

{down = engine_commands.EngContSwCvr, pressed = engine_commands.EngContSw, up = engine_commands.EngContSwCvr, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, value_pressed = 1.0, value_up = 0.0, name = _('ENG CONT Switch + Cover SEC/PRI'), category = {_('Left Console'), _('ENG & JET START Control Panel')}},

This creates the new command "ENG CONT Switch + Cover SEC/PRI" (you can change the name to whatever you want, as long as it is unique).
I bound this command to a maintained ON/OFF switch (like the EAC switch) on my TM Warthog throttle. When I set the physical switch to ON, the cover opens, immediately followed by the switch flipping down to the "SEC" position. When I set the physical switch to OFF, the cover closes pushing the switch back to the "PRI" position.

The EPU switch is a challenge and I don't know if I'm up to it. Incredebible what kind of gadgets the aircraft designers come up with. One of these switches costs probably more than $ 10,000 because they are specially designed for the F-16 and need to go through alll the certifications. I will look at the two others first and hope for inspiration on the EPU.

The following line of code is for the fuel master switch and cover. It works here:

{down = fuel_commands.FuelMasterSwCvr, pressed = fuel_commands.FuelMasterSw, up = fuel_commands.FuelMasterSwCvr, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, value_pressed = 1.0, value_up = 0.0, name = _('FUEL MASTER Switch + Cover OFF/MASTER'), category = {_('Left Console'), _('Fuel Control Panel')}},

I will look at the Zeroizer tomorrow. For the EPU switch I don't see a comparable solution. There are bindings for a 3-position switch under "Special for Joystick", but you will have to provide inputs for the two guards.


Edited by LeCuvier

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Link to comment
Share on other sites

@Red Dog

Coming back to the EPU switch, you would normally need 4 digital inputs and 4 end switches for the 2 guards. However, we can halve that by combining the respective ON and OFF commands into a single line of code each. I show how to do that, using the cover for ON as an example. The stock "default.lua" has these 2 lines of code: 

{	down = engine_commands.EpuSwCvrOn,			cockpit_device_id = devices.ENGINE_INTERFACE,	value_down =  0.0,	name = _('EPU Switch Cover for ON - CLOSE'),		category = {_('Left Console'), _('EPU Control Panel')}},
{	down = engine_commands.EpuSwCvrOn,			cockpit_device_id = devices.ENGINE_INTERFACE,	value_down =  1.0,	name = _('EPU Switch Cover for ON - OPEN'),			category = {_('Left Console'), _('EPU Control Panel')}},

We create a new line of code that combines the 2:

{down = engine_commands.EpuSwCvrOn,	up = engine_commands.EpuSwCvrOn, cockpit_device_id = devices.ENGINE_INTERFACE, value_down =  1.0, value_up =  0.0, name = _('EPU Switch Cover for ON 2-Pos OPEN/CLOSE'), category = {_('Left Console'), _('EPU Control Panel')}},

The "Zeroize" switch is a 3-position switch, and unfortunately ED forgot to provide the 2 lines of code required for a proper 3-position switch which should be under "Special for Joystick". So we create these 2 lines based on the 3 lines that they provide for use with 3 digital inputs:

{down = intercom_commands.ZeroizeSw, up = intercom_commands.ZeroizeSw, cockpit_device_id = devices.INTERCOM, value_down =  1.0,	value_up =  0.0, name = _('ZEROIZE Switch - OFP/OFF'), category = {_('Right Console')}},
{down = intercom_commands.ZeroizeSw, up = intercom_commands.ZeroizeSw, cockpit_device_id = devices.INTERCOM, value_down =  -1.0, value_up =  0.0, name = _('ZEROIZE Switch - DATA/OFF'), category = {_('Right Console')}},

Again, you need to create a line of code so you can use a single switch to control the guard, using the same approach as for the EPU switch guards..

If you need help with this, don't hesitate to get back to me, preferrably via PM.

  • Like 1

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Link to comment
Share on other sites

The problem with using scripting is that it gets wiped out after every patch. While it is easy to copy/paste the removed/replaced files back, ED and 3rd parties frequently update these control map files, so the only safe way to do it is to perform a file compare and paste in the changes you made from the old file to the new file. I had a lot of aircraft customized to make the Warthog throttle work well. It was a ton of work after every patch. The WinWing throttle and control panels are far more compatible with most aircraft. I only have a few aircraft that still need some scripts to map correctly to physical switches. 

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

36 minutes ago, streakeagle said:

The problem with using scripting is that it gets wiped out after every patch. While it is easy to copy/paste the removed/replaced files back, ED and 3rd parties frequently update these control map files, so the only safe way to do it is to perform a file compare and paste in the changes you made from the old file to the new file. I had a lot of aircraft customized to make the Warthog throttle work well. It was a ton of work after every patch. The WinWing throttle and control panels are far more compatible with most aircraft. I only have a few aircraft that still need some scripts to map correctly to physical switches. 

IIRC, a friend uses the thrustmaster scripting system to do Warthog bind modifications that don't get wiped by updates (unless the controls change).

Link to comment
Share on other sites

8 hours ago, streakeagle said:

The problem with using scripting is that it gets wiped out after every patch. While it is easy to copy/paste the removed/replaced files back, ED and 3rd parties frequently update these control map files, so the only safe way to do it is to perform a file compare and paste in the changes you made from the old file to the new file. I had a lot of aircraft customized to make the Warthog throttle work well. It was a ton of work after every patch. The WinWing throttle and control panels are far more compatible with most aircraft. I only have a few aircraft that still need some scripts to map correctly to physical switches. 

I use OvGME to back up and restore the modified files. That reduces the workload after updates to a minimum. Very rarely it's necessary to do a file compare because new commands have been added. This concerns mostly aircraft in Early Access. I check those every few months or when I know features have been added. With Notepad++ the file compare is very easy and added lines are quickly pasted over. I'm certainly not going to throw my TM WH throttle and VRP stick (with TM WH grip) away and buy Winwing stuff. I have a total of 31 mod items under OvGME, with mostly one .LUA per item, and it's not a burden.

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Link to comment
Share on other sites

That's one of the reasons I like programmable HOTAS with something like TM TARGET or the reason I make inputs in my pit with things like Pokeys or Arcaze modules, where you are able to do keyboard emulations and macros in addition to simple DX-buttons. I know that many guys prefer pure DX-inputs and do think that keyboard emulation or macros are old fashioned, but it gives you much more flexibility to be able to solve functional problems the simulation itself sometimes offers not the best solution. And if you don't need macros you can also use simple DX-functions here.

Joystick Gremlin could be a solution, but it has the drawback that the DX-buttons always exist in parallel to the programmend macro-function. You must install a filter driver to avoid this "double function" which is sometimes not easy to get it running correctly. The TM software has this filter already applied.

But I think that the best solution was the old fashioned way to load the config directly into the hardware, like you could do it with the old Cougar. There was no need running a software in the background, all was stored on an EEPROM inside the HOTAS and different config could be downloaded within a few seconds. The Pokeys cards do still work a little bit like the old Cougar did.


Edited by Viper1970

CockpitPC1: R9 5950X|64GB DDR4|512GB M2SSD|2TB M2SSD|RTX3090|ReverbG2|Win11Pro - PC2: PhnIIX6 1100T|32GB DDR2|2x2TB HDD|2x GTX660 SLI|Win7Pro64
ComUnitPC1: R9 3900XT|32GB DDR4|2x2TB HDD|RTX2070|Win11Pro - PC2: PhnIIX6 1100T|16GB DDR2|2x2TB HDD|GTX660|Win7Pro64
ComUnitPC3: AthlnIIX2 250|2GB DDR2|2TB HDD|5950Ultra|2xVoodooII SLI|WinXPPro32&WinME - PC4: K6-2+|768MB SDR|640GB HDD|Geforce256DDR|VoodooI|Win98SE

DCS - Modules - 1.jpg

DCS - Modules - 2.jpg

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...