That's one way to do it. 👍 I had a similar challenge 5 or 6 months ago when I was building my first trainer aircraft. The plane has what are essentially two inline cockpits, so all the switches had to be mirrored, including indication of their states, and using screens for that is IMHO the clearest and easiest way to do it. I went for combining the composites from each set of two screens by writing the values from the second screen to other, free channels on the composite of the first screen and gave that combined composite to a Lua script. The interpretation of which area of the screen was pressed I then did in that Lua script. I found encapsulating such logic into one Lua function per touchscreen "button", that would evaluate whether that button was pressed either on screen 1 or screen 2, to be very useful and easy to maintain. 🙂
This is a niche topic, but it is something I have been struggling with when wanting to make dual screened systems in my vessels :) Hope it helps!
That's one way to do it. 👍
I had a similar challenge 5 or 6 months ago when I was building my first trainer aircraft. The plane has what are essentially two inline cockpits, so all the switches had to be mirrored, including indication of their states, and using screens for that is IMHO the clearest and easiest way to do it.
I went for combining the composites from each set of two screens by writing the values from the second screen to other, free channels on the composite of the first screen and gave that combined composite to a Lua script. The interpretation of which area of the screen was pressed I then did in that Lua script. I found encapsulating such logic into one Lua function per touchscreen "button", that would evaluate whether that button was pressed either on screen 1 or screen 2, to be very useful and easy to maintain. 🙂
Yup, so useful! That's a great way to do it as well!
THANK YOOOOUUU!!😭😭
I would have just went with two same lua scripts with or function on every output, but nice sollution
Yup! That is good too! Many ways to do it
Why not just use the composite switchbox to control which composite signal goes into the lua block?
Yes, but then there has to be a switch gate, cant have them work at the same time!
@@454ss_gaming Break out the is pressed channel from one of the displays and use that to control the switchbox.
@@ronhebert3027 That's a good way to do it as well :)
@@454ss_gamingAs a bonus it also lets you stack switchboxes to use more than just 2 displays.
Hello