- Posts: 12
including custom-switch support in Deviation
- pfriedel
- Offline
ruzam wrote: Porting model.ini files (and documenting them) might be easier if the same switch 'functions' were in common between different transmitters. For example the new hardware.ini file tells the code not only what switches the transmitter has but how they are mapped as well (every transmitter model would have it's own hardware.ini). The 7E switches would be mapped to a very small subset of the larger pool. The Devo12s would, by default, be mapped to every switch (cause it has em). If your transmitter doesn't have that particular switch, the .ini would work as if the switch were set to a default (static) setting (maybe it does that now?). The menus would continue to show 'all' switches (maybe with an * or something to indicate missing switches) and allow entering mixes with the missing switches.
Yeah, as it stands Deviation does some automatic translation between different TX capabilities to support easy portability and for the most part it _generally_ works really well. But I almost wonder if.. Hrm. Putting a translation layer in the hardware.ini wouldn't be a bad idea - that way the model.ini could refer to SW1, SW2, SW3, SW4, POT1, POT2, etc (or something), and the hardware.ini maps that back to the physical switch. The standard hardware.ini would do the translation mapping that Deviation currently does, but it would open it up for people who want to hack their transmitters.
Anyway, just an idea - I don't know how useful this is outside of us rabid 7E users.
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
kreidler wrote: I do not have a 7e on hand yet. But if hardware.ini is set to 2x2 with installed 3x1 switch testing should be possible due to same wiring:
SW A0 = -100 SW A1 = +100
SW B0 = -100 SW B1 = +100
While in middle position the same value for SWA and SWB should be present.
Just for my understanding for 2x2 and 3x1 it does not matter if diodes are installed or not. Correct?
Tested this with last build, and it's right as you said.
Middle :
SW A0 -100 SW A1 100
SW B0 -100 SW B1 100
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Make sure to use 60836e3163b2 or newer, since that is where the 2x2 fix is
(note that I just committed the 2x2 fix)
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
up =
SW A0 = 100 SW A1 = -100
SW B0 = -100 SW B1 = +100
mid =
SW A0 = 100 SW A1 = -100
SW B0 = 100 SW B1 = -100
down =
SW A0 = -100 SW A1 = +100
SW B0 = 100 SW B1 = -100
Please Log in or Create an account to join the conversation.
- HappyHarry
- Offline
- Posts: 1136
swa0 +100
swa1 -100
swa2 -100
swb0 -100
swb1 +100
swb2 -100
switch pos1 (middle)
swa0 +100
swa1 -100
swa2 -100
swb0 +100
swb1 -100
swb2 -100
switch pos2 (down)
swa0 -100
swa1 +100
swa2 -100
swb0 +100
swb1 -100
swb2 -100
this is with build 60836e3
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
But there is a bug because SWA2 and SWB2 shouldn't be shown on the channel page.
Please Log in or Create an account to join the conversation.
- HappyHarry
- Offline
- Posts: 1136
in that case there is also a bug for the 3x1 setting as swb0/1/2 are shown on the channel monitor
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- Shanman3us
- Offline
- Posts: 42
Sorry....
It looks like maybe I'm using the version before the one that was 'fixed' based on PhracturedBlue's message #18955.
I haven't got the skill yet to build from source so I will just wait for an update from HH
NOTE: The following is possibly no longer relevant...
Just thought I would mention that I'm using the 2x2 configuration and have just flashed the newest (I think) FW posted by HappyHarry v4.0.1 a03a6c2.
It seems as if maybe the switches are inverted? My readings are as follows based on the 'Stick Input' display screen:
Left switch Up
SW A0: -100
SW A1: +100
SW A2: -100
Left switch Down
SW A0: -100
SW A1: -100
SW A2: +100
Right switch UP
SW B0: -100
SW B1: +100
SW B2: -100
Right switch Down
SW B0: -100
SW B1: -100
SW B2: +100
The Right switch has no effect on the Left switch and vise versa.
When I change the layout to display SW A and SW B it shows that they are ON when in fact they are in the UP (off) position.
I did install the switch wiring exactly as in the mods pages and also have the diodes in place.
Regards, Shanman3us
Please Log in or Create an account to join the conversation.
- HappyHarry
- Offline
- Posts: 1136
thanks again for the really quick work pb
Please Log in or Create an account to join the conversation.
- Shanman3us
- Offline
- Posts: 42
My 2x2 switches register properly and are the correct orientation.
I'm looking forward to the possibility of mixing and matching extra switches too. I have only a single 3 postion switch at my disposal so I was thinking of having a combiniation of a 3x1 and a 2x1 switch. From my reading that is a possibility in future builds.
Thanks HappyHarry for the newest build and PB for your relentless coding!
Shanman3us
Please Log in or Create an account to join the conversation.
- hongm1212
- Offline
- Posts: 10
thanks.
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
To be honest I didn't had time to fly and test it properly just tried the channel monitor.
But I can't see the why it won't work if the switches are detected properly. Update you model file to account for the new switches.
Please Log in or Create an account to join the conversation.
- lefticus
- Offline
- Posts: 1
I can follow the wiring instructions fine, but the thing that's not obvious to me is what kind of switch to get.
I bought 2 SPDT center-off switches from radio shack ( www.radioshack.com/product/index.jsp?productId=2062486 ) and got them mounted in the face, it's not a great fit, but they do fit. I want to double check that center-off is the correct thing before I wire it all up.
Thanks.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- robca
- Offline
- Posts: 174
On Rc Groups someone sent a link to a company selling Tx replacement switches for ~$4 each, cheap shipping, but can't find that link anymore
Please Log in or Create an account to join the conversation.
- Shanman3us
- Offline
- Posts: 42
robca wrote: On Rc Groups someone sent a link to a company selling Tx replacement switches for ~$4 each, cheap shipping, but can't find that link anymore
I think this is the link you were referring to:
www.alofthobbies.com/radio-gear/taranis-parts-2.html
Shanman3us
Please Log in or Create an account to join the conversation.
- robca
- Offline
- Posts: 174
Shanman3us wrote:
robca wrote: On Rc Groups someone sent a link to a company selling Tx replacement switches for ~$4 each, cheap shipping, but can't find that link anymore
I think this is the link you were referring to:
www.alofthobbies.com/radio-gear/taranis-parts-2.html
Shanman3us
That's the one! thanks for adding it here
Please Log in or Create an account to join the conversation.
- robca
- Offline
- Posts: 174
I don't see the USB menu anymore. I can enter USB mode by turning on my Devo 7e holding ENT, but I liked having the USB menu (it saves on the wear on the slider switch, usually not a very robust component)
I have soldered two 3-way switches according to Galee's wiring. I added "extra-switches=3x2" in Hardware.ini.
In the Channel Monitor screen, Stick input submenu, I see the following:
left switch SW A0/1/2
Switch up (away from me): SW A0=100, SW A1=-100, SW A2=-100
Middle position: SW A0=-100, SW A1=100, SW A2=-100
Down position (toward me): SW A0=-100, SW A1=-100, SW A2=100
Same for B0/1/2, so at least it's consistent
I was expecting so see a a value change from -100 to 0 to 100.
How do I assign a switch to a channel so that I can go -100, 0, 100 in the three positions? Do I need to start playing with a mixer to get the value combining the three A0/1/2 values?
Please Log in or Create an account to join the conversation.
- HappyHarry
- Offline
- Posts: 1136
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- including custom-switch support in Deviation