- Posts: 17
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Can anybody help me setup a three position switch
Can anybody help me setup a three position switch
- Condor
- Topic Author
- Offline
Less
More
24 Mar 2015 19:41 #30208
by Condor
Can anybody help me setup a three position switch was created 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.
- FDR
- Offline
24 Mar 2015 20:53 #30209
by FDR
Replied by FDR on topic Can anybody help me setup a three position switch
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
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.
- Condor
- Topic Author
- Offline
Less
More
- Posts: 17
24 Mar 2015 22:08 #30213
by Condor
Replied by Condor on topic Can anybody help me setup a three position switch
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.
- Deal57
- Offline
Less
More
- Posts: 857
25 Mar 2015 01:09 #30216
by Deal57
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!!
Replied by Deal57 on topic Can anybody help me setup a three position switch
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
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.
- Condor
- Topic Author
- Offline
Less
More
- Posts: 17
25 Mar 2015 20:11 #30256
by Condor
Replied by Condor on topic Can anybody help me setup a three position switch
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.
- ohhorob
- Offline
Less
More
- Posts: 5
15 Apr 2015 05:39 #31193
by ohhorob
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)
Replied by ohhorob on topic Can anybody help me setup a three position switch
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.
- mwm
- Offline
15 Apr 2015 19:30 #31218
by mwm
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.
Replied by mwm on topic Can anybody help me setup a three position switch
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
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.
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Can anybody help me setup a three position switch
Time to create page: 0.038 seconds
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Can anybody help me setup a three position switch