What's new
Aloft Forums

Welcome to Aloft Forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Companion Switch Positions/Logic Values at Startup QX7 with OTX 2.3.9

yardsail

New User
The two position switches do not work with logic switches as I would expect when the simulation is started in Companion:
Switch SH is in the up position at the start of the simulation.
If I set up an AND logic switch with the value SH up, it remains false when the simulation is started.
If I toggle switch SH down, the logic switch remains false.
If I toggle switch up again, the logic switch goes true. From then on, toggling SH up makes the logic switch to go true, and toggling SH down makes the logic switch go false.

Is this the way it is supposed to work? It is different from the way the three position switches SA, SB, SC, SD work:
SA-SD are in the up position at the start of the simulation.
If I set up AND logic switches with the value SA-SD up, they show true when the simulation is started.
Toggling the switches to the middle or down position makes the logic switches go false, and toggling them back up makes the logic switches go true, again.
So the switches SA-SD are always true when they are in the up position (even at startup) and false when they are in the middle or down position, as I would expect.

The three position switches SA-SD work as I would expect with logic switches, but the two position switches SF and SH do not. Is this the way it is intended to work, or am I missing something?
 
This seems to work fine for me, here I am showing the two logical switches tied to switches E an F and I just started the simulator, and as you can see from the two dark squares, both logical switches are on. Is this not what happens for you?

Regards, Guy


Logical.png
 
Nope, if I do the logical switches like you have for the two-position switches, they show off when the simulation is first started. They only show on if they are switched down and then back up again. Strangely, my three-position switches behave as expected - they show on when the simulation is started, unlike the two-position switches. Of course I am running the X7 simulation, and you have the X9. Maybe it is a bug in the X7 simulation?
 
It's OTX 2.3.9 and the QX7S profile. I put it right in the thread title, since it's always the first thing people ask. By the way, I didn't have this issue with the version I had installed previously (2.2.4) running the same model files.
 
Odd, works for me on a QX7 as well. I am on 2.3.9, so I wonder what the difference is here?

Sorry I couldn't be of more help!

Ciao, Guy

1597029438302.png
 
As I recall with logic switches you have to add an extra logic step to fix the on power startup issue.
 
I have the same start up problem with my X9D and X9E simulations, with SF for example. Companion sitting at 2.3.11
In the field, is not the place to start fiddling around with Special Switch Sequences. That way you can get confused and loose confidence.
Is there any progress you are aware of? Any further info on "an extra logic step"? This really annoys me, with a transmitter that is otherwise superb.
 
I was looking at the Ethos images over on RCG https://www.rcgroups.com/forums/showpost.php?p=45392973&postcount=3 and noticed that the Special Function page has a "run at startup" on/off switch, presumably to address this very issue. The question here is when do all the scripts run. If your battery voltage check function runs before the battery voltage is read, well, you get a low battery alarm. I worked around that particular issue by adding a, "greater than 0" check as well.
The initial issue where something worked for me but not someone else could come down to differences in computer speed. When the simulator starts a number of processes are started and the final order of operations will be determined by how long each of those processes take. That timing can vary from device to device, or even one run to another.
 
I do not recall what the added step is, but recall it was pretty well documented on the OpenTX site. While it seemed like odd logic to me, the programmers all seemed to think this was a normal process. I have a guy coming in this morning that dealt with this and I'll see if he recalls what he used. I can put in an @Kilrah here and see if he can give a solid suggestion for you. :)
 
Very much appreciate your help.
Been experimenting with the Simulator - at "power up"....
SA up is detected and actioned as expected, as programmed in Special Functions. NO other switch does this. In fact the other switches react as if in mid position, and will all play a track for example assigned to mid position, though showing as up in the simulator.
e.g. Track assigned to SB- plays when the simulator starts. To play again it needs to go down to mid, up, and down to mid again. Is OK thereafter.
I wonder if this is a simulator oddity, or will occur with a transmitter - causing potential confusion in the field!
Obvious step is to get my Tx working and try it (currently needing a very delicate solder job to fix a broken off USB socket (I was too ham fisted in forcing the case halves together)
 
Back
Top