Search found 44 matches
- Wed Apr 21, 2021 9:53 am
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
Hi, ive finally found a solution that works for most situations. For anyone else with this issue, here it is: PROBLEM Using example code to add a switch from airmanager's documentation is not enough for them to work properly. https://siminnovations.com/wiki/index.php?title=Switch_connection_tutorial...
- Fri Apr 16, 2021 11:30 am
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
ok, i think i wont be able to find help here. my findings indicate that i must start airmanager after x-plane is loaded for it to work, witch is what was described on my first message. thanks to everyone that help, the issue is still there but i have to move on to other things, cant be dealing with ...
- Fri Apr 16, 2021 11:06 am
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
The second one What is the solution to this problem? cheers. Hi, We all want to help you but you are not helping your self. The solution is to do what @Sling Tony is asking you to do. Tony is taking you through a process of elimination. SCRAP ALL YOU CODE IDEAS Once established that the code works ...
- Fri Apr 16, 2021 9:57 am
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
The second one Hi, ive tested the following with this code: local switch_36_pos function switch_36_callback(position) print("The battery switch got changed to position " .. position) if position == 0 then xpl_command("sim/electrical/battery_1_off") xpl_command("laminar/c90/...
- Thu Apr 15, 2021 1:20 pm
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
sorry im confused. you are asking me to test your code but first start x-plane and then airmanager? or you want me to disable my panel from auto starting when airmanager starts, so i then start airmanager and wait for the hardware to become available and then manually start my panel, and then start ...
- Thu Apr 15, 2021 9:36 am
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
Yes my thoughts exactly. When trying to diagnose an issue or to get some code working you should keep the environment the same for each test as it just introduces more and more variances each time you test. I always recommend testing with default c172 if at all possible. Once working you can then s...
- Thu Apr 15, 2021 9:34 am
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
The code was tested with the landing light switch as in your example now you’ve switched to the battery switch. If you test with the exact code I posted you will find it works. As You have to make sure the hardware is available before running this else the hardware will not get added. Tony, Not onl...
- Thu Apr 15, 2021 9:32 am
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
Hi I thought I would try and help. But I am fundamentally confused. Perhaps a short clip indicating what you are doing would assist us better to help you. Keith hi, i will try to explain. 1) set up airmanager to load automatically on the computer startup 2) configure your panel to load at airmanage...
- Thu Apr 15, 2021 9:28 am
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
The code was tested with the landing light switch as in your example now you’ve switched to the battery switch. If you test with the exact code I posted you will find it works. As You have to make sure the hardware is available before running this else the hardware will not get added. Hi, thanks fo...
- Wed Apr 14, 2021 7:48 pm
- Forum: Arduino
- Topic: Synchronize switches with xplane not working
- Replies: 43
- Views: 16820
Re: Synchronize switches with xplane not working
Hi, To be honest, your code seems flawed ;) Doing a xpl_subscribe using the same switch callback means that the INT[] will be placed in the position argument of the switch_36_callback function. This is probably not what you want to happen. You can use the timer if you want to simulate a loop: funct...