including custom-switch support in Deviation

More
22 Jan 2014 22:44 #18949 by pfriedel
Replied by pfriedel on topic including custom-switch support in Deviation

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.

More
22 Jan 2014 22:49 #18952 by blackmoon
Replied by blackmoon on topic including custom-switch support in Deviation

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.

More
22 Jan 2014 23:05 - 22 Jan 2014 23:06 #18955 by PhracturedBlue
Replied by PhracturedBlue on topic including custom-switch support in Deviation
If someone with a 3x1 switch would set their switch to 2x2 in hardware.ini, then tell me the values of swa0, swa1, swb0, swb1 when the switch is up, in the middle, and down, then I can work out whether the code is right.

Make sure to use 60836e3163b2 or newer, since that is where the 2x2 fix is
(note that I just committed the 2x2 fix)
Last edit: 22 Jan 2014 23:06 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
22 Jan 2014 23:34 - 22 Jan 2014 23:36 #18956 by blackmoon
Replied by blackmoon on topic including custom-switch support in Deviation
Build : 60836e3

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
Last edit: 22 Jan 2014 23:36 by blackmoon.

Please Log in or Create an account to join the conversation.

More
22 Jan 2014 23:35 #18957 by HappyHarry
Replied by HappyHarry on topic including custom-switch support in Deviation
switch pos0(up)
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.

More
23 Jan 2014 00:36 #18960 by PhracturedBlue
Replied by PhracturedBlue on topic including custom-switch support in Deviation
Thanks, so 2x2 works properly as long as B.6 is connected to the right, and B.8 is connected to the left, and both switches are closed when down.

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.

More
23 Jan 2014 00:45 #18961 by HappyHarry
Replied by HappyHarry on topic including custom-switch support in Deviation
yeah that's what I'd say was the right way to wire it up for the 2x2.

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.

More
23 Jan 2014 03:58 #18968 by PhracturedBlue
Replied by PhracturedBlue on topic including custom-switch support in Deviation
I've fixed the chantest and timer issues now.

Please Log in or Create an account to join the conversation.

More
23 Jan 2014 06:00 - 23 Jan 2014 07:39 #18975 by Shanman3us
Replied by Shanman3us on topic including custom-switch support in Deviation
EDIT:
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 :side:

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
Last edit: 23 Jan 2014 07:39 by Shanman3us.

Please Log in or Create an account to join the conversation.

More
23 Jan 2014 11:10 - 24 Jan 2014 12:00 #18986 by HappyHarry
Replied by HappyHarry on topic including custom-switch support in Deviation
i have put the latest build (d6c4e42) for the 7e in this thread here >> www.deviationtx.com/forum/builds/2661-7e...timer-weekly-updates

thanks again for the really quick work pb 8)
Last edit: 24 Jan 2014 12:00 by HappyHarry.

Please Log in or Create an account to join the conversation.

More
23 Jan 2014 19:49 - 23 Jan 2014 19:51 #19006 by Shanman3us
Replied by Shanman3us on topic including custom-switch support in Deviation
OK, everything is working great now! I'm using build d6c4e42.

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
Last edit: 23 Jan 2014 19:51 by Shanman3us.

Please Log in or Create an account to join the conversation.

More
24 Jan 2014 11:44 #19020 by hongm1212
Replied by hongm1212 on topic including custom-switch support in Devo 8s
I've tested this firmware, can see three switches in the input channel, but the mixed control menu can't find the corresponding key value, that is to say, not set.
thanks.

Please Log in or Create an account to join the conversation.

More
24 Jan 2014 13:09 #19023 by blackmoon
Replied by blackmoon on topic including custom-switch support in Deviation
Did you update your model file to the new SWA and B naming ?

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.

More
25 Jan 2014 01:35 #19060 by lefticus
Replied by lefticus on topic including custom-switch support in Deviation
Sorry for a newbie question here, but I just got my 7e for Christmas and have been following this thread anxiously waiting for the "official" version of the 2 by 3way switch (galee) option.

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.

More
25 Jan 2014 03:40 #19062 by PhracturedBlue
Replied by PhracturedBlue on topic including custom-switch support in Deviation
those will work fine. I scavenged mine out of some old fixed-function radios.

Please Log in or Create an account to join the conversation.

More
25 Jan 2014 23:06 #19113 by robca
You need an on-off-on switch, and not a switch with only 2 positions at the extremes (the switches look the same until you operate them). I was lucky to find one with flat paddles, usually the round ones are easier to find (but don't look as good on a Tx). Look for T8014 paddle on-off-on switches to find what you need (single pole, SPDT = single pole dual throw, or 1P). If you find something called (on)off(on) it means that the outside positions are temporary (i.e. you need to hold it in that position, which is not desirable in this case). A T8014 perfectly fits in the case, without any mechanical modification needed

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.

More
25 Jan 2014 23:56 #19118 by Shanman3us
Replied by Shanman3us on topic including custom-switch support in Deviation

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.

More
26 Jan 2014 08:44 #19138 by robca

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.

More
26 Jan 2014 09:20 #19140 by robca
I finally had the time to flash the latest HappyHarry build (deviation-devo7e-v4.0.1-d6c4e42.zip)

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.

More
26 Jan 2014 14:09 - 26 Jan 2014 14:09 #19149 by HappyHarry
Replied by HappyHarry on topic including custom-switch support in Deviation
pb had to remove the usb menu to create enough space for the code for these switches, for the mixing i have just answered a similar question in this post here >> www.deviationtx.com/forum/builds/2661-7e...dates?start=20#19147
Last edit: 26 Jan 2014 14:09 by HappyHarry.

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum