Can anybody help me setup a three position switch

More
24 Mar 2015 19:41 #30208 by Condor
I want to have an output to a channel that gives me 100 0 -100. Set by a three position switch. On my Devo 10 using FMod 0, 1, 2.

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

More
24 Mar 2015 20:53 #30209 by FDR
Go into the mixer of the channel you want.
Make it an Expo&DR mixer template.
Select the fixed function.
(Ignore the source)
Select the MIX1 and MIX2 as Switch1 and Switch2
Set the Scale values -100, 0, +100

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

More
24 Mar 2015 22:08 #30213 by Condor
Hi FDR thanks for the help. I can't get any output, how do I assign Fmod to Switch1 and Switch2.

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

More
25 Mar 2015 01:09 #30216 by Deal57
A while back I used this mix for a switch on my sim. It may not be the best way, but maybe it can help you. Since I have a Devo7e, you'll need to use FMOD instead of SW B.

You can build this in the emulator for your TX.

[channel7]
template=expo_dr
[mixer]
src=SW B0
dest=Ch7
scalar=-100
curvetype=3point
points=100,0,-100
[mixer]
src=SW B0
dest=Ch7
switch=SW B1
scalar=-100
curvetype=3point
points=100,0,-100
[mixer]
src=SW B0
dest=Ch7
switch=SW B2
scalar=-100
curvetype=3point
points=100,0,-100

Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!

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

More
25 Mar 2015 20:11 #30256 by Condor
Thanks FDR and Deal I have it sorted. FDR needed a bit of adjustment and it worked. Many thanks.

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

More
15 Apr 2015 05:39 #31193 by ohhorob

Condor wrote: I want to have an output to a channel that gives me 100 0 -100. Set by a three position switch. On my Devo 10 using FMod 0, 1, 2.


I tackled this recently on the Devo 12S, using a COMPLEX mix on Channel 5. It drives my flight modes on a Naze32 Rev5/Cleanflight controller.

The approach is to set a Mixer for each switch position, with a Fixed curve of the desired offset.

i.e. each page of the Complex mix, is a Fixed curve using a specific offset.

Page 1: Switch=FMODE0, Curve=Fixed, Offset=-100
Page 2: Switch=FMODE1, Curve=Fixed, Offset=0
Page 3: Switch=FMODE2, Curve=Fixed, Offset=100

Now in Cleanflight, I can set my modes using AUX1.. I use -100=Horizon, 0=Angle, 100=Acro (the "no mode" of Cleanflight)

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

More
15 Apr 2015 19:30 #31218 by mwm
If you use a switch as an input, you can do it with two complex mixes:

Page 1: No Switch, Curve = Fixed, Scale = 0
Page 2: Switch = !FMODE1, Src = FMODE2, Curve = Min/Max, mux = replace

That with, if FMODE1 is on, you get an output of -0 from the first mixer, and mixer #2 isn't used. If FMODE1 is off, then you use mixer 2, and the output is either 100 if FMODE2 is on, or -100 if it's off.

The three-page version has the advantage that you can set it up in an Expo & D/R mixer

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

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

Time to create page: 0.032 seconds
Powered by Kunena Forum