Hi! Is it possible to match my toggle switch with the switch in the game using commands? This would be used for the Seat Belt signs in the Zibo 738 since the dataref isn't writable and so that the center position of the switch is matched no matter if the switch came from the up most position or the bottom most position. I can't assign the middle position to "laminar/B738/toggle_switch/seatbelt_sign_dn". While that would be great for when the switch comes from the up most position, it would break when the switch comes from the bottom most position.
Thanks!
Brady
Matching switch positions with hardware through commands [XP]
- BradyBrother100
- Posts: 54
- Joined: Tue Oct 13, 2020 4:21 pm
- Location: United States MDT
Matching switch positions with hardware through commands [XP]
Last edited by BradyBrother100 on Thu Mar 25, 2021 11:36 pm, edited 1 time in total.
Re: Matching switch positions with hardware through commands [XP]
There's a toggle command for it. What you can do is trigger the toggle command when the switch is in a different position than the simulator. But you need to do this within a timer callback, because else it might just start toggling out of control. The C90 has the same problem with a lot of switches, the datarefs aren't writeable and there're only up and down commands. I didn't manage to get that working reliably, but a toggle might work.
- BradyBrother100
- Posts: 54
- Joined: Tue Oct 13, 2020 4:21 pm
- Location: United States MDT
Re: Matching switch positions with hardware through commands [XP]
Great Idea but the Zibo doesn't have a command to toggle the seat belt signs, emergency lights, or the landing lights independent of one another. With the Emergency Exit lights, you can turn the off which is the up most position, and then there are the up/down commands. With the landing lights, you can only turn them all on or turn them all off, you can't control them independently.
Re: Matching switch positions with hardware through commands [XP]
Brady,
We need more information. What when asking questions like this, I know we have some of this now but in the initial question it’s always worth saying what sim, aircraft and control it’s for. What datarefs and/or commands are relevant and a description of the issue or query and how you would like it to work. It saves someone who may be able to help you having to guess and dig around. They may be able to simply say that’s not possible or even better post you a snippet of code to achieve what you need.
We need more information. What when asking questions like this, I know we have some of this now but in the initial question it’s always worth saying what sim, aircraft and control it’s for. What datarefs and/or commands are relevant and a description of the issue or query and how you would like it to work. It saves someone who may be able to help you having to guess and dig around. They may be able to simply say that’s not possible or even better post you a snippet of code to achieve what you need.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D