My first question on this discord server. I am almost finishing my hardware for my Cessna pit. Now planning the Arduino pin layout.
I use a ON-ON switch for let’s say the MASTER_ALT. Now I can use 2 pins and use only ON PRESS for MASTER_ALT_ON and MASTER_ALT_OFF or 1 pin and then ON Press MASTER_ALT_ON and ON release MASTER_ALT_OFF.
Question: would there be any difference in behaviour in the sim? What is the preferred method? I am thinking on probably synchronisation problems.
Because I am in the planning fase I do not have an Arduino yet to experiment. Just planning now how much cards I need.
#ON-ON switch question.
1 messages · Page 1 of 1 (latest)
There is no difference in behavior in the sim by using two pins versus one pin. I would always prefer to use the one pin method. Arduino pins are a scarce commodity.
I agree with Jaimie
@pseudo quail your name is familiar. Did you build with fsbus years ago?
Yes that’s indeed the case. Still have it in my B777. But after the Cessna is ready I will redo that one with arduino /MB too
oh boy, wow
look
The AVSIM Community
I notice 7 possibilities on the fsbus com pcb to connect the other pcb's. Does any body know wheter it is possible to use the 7 ports in any combination you like?So for example can I use 2 fsbus keys PCB's together with 2 fsbus displays pcb's? Or can I use just one of every kind?Thanks for any he...
what I found when I googled
we had a chat in 2003
both of our avsim accounts are inactive for years I bet
You have a very good memory. Haven,t been on Avsim for years. Just retired now and having time again for sim building.
yeah the name rang some bell, maybe I had looked at your 777 project for ideas back then
I was also away from sims for a long while until msfs2020 came out
but hey, the ON-ON switch works with just one switch too
you can also wire it as two switches, but there is an option to "auto retrigger" on startup
which basically goes through the sync of each switch
so in case your plane and physical switch are in different state, starting mobiflight should trigger the physical switch state once for the sim
this is optional setting
so as long as your switch functions for sim are "ON" and "OFF" type, for OnPress and OnRelease it should work the right way around as soon as you operate a switch anyway
Ah good to know. I was indeed thinking about synchronisation problems. Suppose you have a start situation 10 miles on final. The gear lever is physically down and then you do a go around and put the gear up. Then you reset the situation file for a second try. Then you have a sync problem. But as MB does not restart your solution will not work. I have seen a solution without using MB, but with a lua file and a ino file (from arduino IDE). But that would be a lot of work for the complete cockpit. I am still wondering whether this would be possible with MB. Just ordered the boards from Sebastian. So going to explore.
but if you use a toggle type event, then of course thing can get out of sync
but generally you want on/off events for toggle switches and toggle events for push buttons, as weird as it sounds 🙂
so if you use "Gear up" event for gear switch and set the OnPress and OnRelease correctly, it should work
the retrigger means mobiflight goes through each switch and sends and event for the current state of each
so if you for example start a flight in the air and your gear is up in the sim, as it is
but your gear switch is down in the physical sim gear lever
if you have retrigger disabled, nothing will happen until you touch the gear switch, and move it up, but at that point it will send a "gear up" event and its already up in the sim
but if you have retrigger ON, then your gear would go down if you start mobiflight while the plane is in the air
it sounds way more complicated ot explain this than it is
so yeah, in your scenario you would do it so that when you restart your scenario for 10 mile final, you would lift the gear lever up while the sim loads I guess
you would not want to lower the gear anyway, so the only option is to lift the lever up. And if MF is running nothing would happen as you would just get a gear up event which should not do nothing
Thanks for all the info. I am going to experiment with all this.