marek.babic Posted February 2, 2020 Posted February 2, 2020 Hello guys, i am starting to play with arduino, homebuilding my F-18 cockpit. I come to an issue with switches with cover like GEN TIE RESET or GAIN on FCS panel. I have the cover but the cover does not send any signal. And you cannoy use switch if the cover in DCS is closed. So is there a way to make one button click ON-OFF switch to ON to both open cover and the press switch and back moving switch to OFF close cover (this would off the switch). Can i do it on arduino without going to LUA? Thank you
molevitch Posted February 2, 2020 Posted February 2, 2020 Hello guys, i am starting to play with arduino, homebuilding my F-18 cockpit. I come to an issue with switches with cover like GEN TIE RESET or GAIN on FCS panel. I have the cover but the cover does not send any signal. And you cannoy use switch if the cover in DCS is closed. So is there a way to make one button click ON-OFF switch to ON to both open cover and the press switch and back moving switch to OFF close cover (this would off the switch). Can i do it on arduino without going to LUA? Thank you Hi Marek, I have an elegant solution. You can put a Hall Sensor above the switch cover and then a small magnet attached to the cover above the pivot. When you lift the cover, the magnet will activate the switch cover in DCS. Yes, it uses a pin on the arduino, but it is great for authenticity. Mole 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
marek.babic Posted February 2, 2020 Author Posted February 2, 2020 Thanks :) but still I am looking more for software solution. I will lift cover physically in my cockpit and will fly without seeing virtual cockpit. So guys, any idea how to tell DCS bios to both lift cover and flip switch based on single pin?
JG14_Smil Posted February 2, 2020 Posted February 2, 2020 Hello, All your answer's are in here: https://forums.eagle.ru/showthread.php?t=89226 Get general concept from early posts, then read the later ones for your problem. Someone may have already edited a file that will help.
RightStuff Posted February 2, 2020 Posted February 2, 2020 Marek, all you need is mentioned in this posting. ;) https://forums.eagle.ru/showpost.php?p=4168935&postcount=655
marek.babic Posted February 2, 2020 Author Posted February 2, 2020 Thank you RightStuff!!! Now where do I copy those lines?? :D Sorry I am beginner with this....
marek.babic Posted February 3, 2020 Author Posted February 3, 2020 Well does anybody knows how exacatly DCS BIOS work? e.g. GEN TIE SWITCH code: -- 15. Generator Tie Control Switch defineToggleSwitch("GEN_TIE_COVER", 3, 3007, 379, "Generator Tie Control Switch", "Generator TIE Control Switch Cover, OPEN/CLOSE") defineToggleSwitch("GEN_TIE_SW", 3, 3006, 378, "Generator Tie Control Switch", "Generator TIE Control Switch, NORM/RESET") What is the meaning of these 3 numbers 3, 3006, 378????????? Thanks guys
marek.babic Posted February 3, 2020 Author Posted February 3, 2020 How would I define my own toggle switch in DCS Bios? I think I understand everything except for these 3 number....
Nikolas_A Posted February 4, 2020 Posted February 4, 2020 Well, since in the real a/c the cover is just a cover, authenticity would mean being able to disable the cover commands in software and just rely on the cover for mechanical protection. I didn't read through the thread that JG14_Smil linked, it might be what he meant... I have an elegant solution. You can put a Hall Sensor above the switch cover and then a small magnet attached to the cover above the pivot. When you lift the cover, the magnet will activate the switch cover in DCS. Yes, it uses a pin on the arduino, but it is great for authenticity.
Gosling Posted January 28, 2022 Posted January 28, 2022 I have a solution using software called SVMapper - There is a link to it on here. This software runs parallel with DCS and sees the boards (Leo Bodnar BU0836A for example) the switch is connected to. Use a Momentary-Off-ON switch. The cover forces the switch to Mom. When to cover is lifted the switch moves itself to Off. This can be detected by SVMapper and used to send the keyboard Command for Cover Up. The switch can now be moved to ON When the cover is closed the switch is forced to Mom and SVMapper can detect this and send the keyboard command for Cover Down. I also use this for the Spin Recovery switch.
Recommended Posts