How to assign CH6 out put from mix switch?

More
04 Sep 2014 23:34 #25511 by rexless
Greetings. I have the devo 10. I'm flying custom built multicopters with a range of receivers that have 6 to 9 pinned outs. I've got model.ini that puts gear on ch5 and Aile D/R on ch 6, but I want to understand how to assign Mix as a 3 point switch to CH6 or set up Aux 4 and 5 to provide variable expo to CH 2 or 3.

For getting the MIX switch to output to CH6 I've tried a bunch of settings but now I'm stuck at:

-channel6-
template=expo_dr
-mixer-
src=MIX
dest=Ch6
curvetype=expo


I can't see any activity on CH6 when I flick the MIX switch but the indicator on the screen does show M0,M1,M2

Thanks in advance for any tips on how to get there.

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

More
05 Sep 2014 05:35 - 05 Sep 2014 05:39 #25512 by mwm
Switches are a bit tricky in the latest version. With a single mix, you can get +/- 100% for On or Off: as in MIX0 is on or off, and MIX1 is on or off, and MIX2 is on or off. To get three states, you have to have at least two mixers, and three is a bit clearer.

Three mixers:
template=complex
-mixer1-
curvetype=fixed
scaler=100
-mixer2-
switch=MIX1
curvetype=fixed
scaler=0
-mixer3-
switch=MIX0
curvetype=fixed
scaler=-100
I.e. - MIX0 on gets you -100, MIX1 on gets you 0, both off (MIX2 on) gets you 100.

Two mixers:
curvetype=complex
-mixer1-
src=MIX2
curvetype=1-1
scaler=100
-mixer2-
switch=MIX1
curvetype=fixed
scalar=0
So: MIX1 on gets you 0. Otherwise you get 100 if MIX2 is on and -100 if MIX2 is off (meaning MIX0 is on).

If you've got any more questions, just ask.

EDIT: Forgot: all the mixers are replace!

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.
Last edit: 05 Sep 2014 05:39 by mwm. Reason: Note about mixer types.

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

More
05 Sep 2014 23:00 #25518 by rexless
Replied by rexless on topic How to assign CH6 out put from mix switch?
Greetings MWM,

I gave that a try and messed with variations of that, but I couldn't get the mix switch to do anything. I'm using an OrangeRX 615X via DSMX receiver. If I modify and use the AIL DR switch I get controls over Ch6 but if I use either of the samples I lose control on both ch5 and ch6 :blink:

It also seems I've messed up something else. I went to try and fly with a basic set up and my quad flew great, but the controls were so bloody sensetive anything more than the mildest movements resulted in flip flip crash! Fortunately my quad is tough as nails save for a few broken props.

Here's what I tried today.

name=CFI-Naze385
mixermode=Advanced
icon=PLANE.BMP
type=plane
-radio-
protocol=DSMX
num_channels=7
fixed_id=477744
tx_power=30mW

-protocol_opts-
Telemetry=Off

-channel1-
failsafe=-125
scalar=122
scalar-=121
template=simple
-mixer-
src=THR
dest=Ch1
-mixer-
src=THR
dest=Ch1
switch=RUD DR1
scalar=-120
usetrim=0
curvetype=fixed

-channel2-
reverse=1
failsafe=0
subtrim=-6
scalar=162
template=simple
-mixer-
src=AIL
dest=Ch2
scalar=50
curvetype=expo
points=20,20
-mixer-
src=AIL
dest=Ch2
switch=FMODE1
scalar=75
curvetype=expo
points=10,10
-mixer-
src=AIL
dest=Ch2
switch=FMODE2
curvetype=expo
points=0,0

-channel3-
failsafe=0
subtrim=3
scalar=162
scalar-=162
template=expo_dr
-mixer-
src=ELE
dest=Ch3
scalar=50
curvetype=expo
points=20,20
-mixer-
src=ELE
dest=Ch3
switch=FMODE1
scalar=75
curvetype=expo
points=10,10
-mixer-
src=ELE
dest=Ch3
switch=FMODE2
curvetype=expo
points=0,0

-channel4-
reverse=1
failsafe=0
subtrim=3
scalar=122
scalar-=122
template=simple
-mixer-
src=RUD
dest=Ch4

-channel5-
scalar=121
template=simple
-mixer-
src=GEAR1
dest=Ch5

-channel6-
subtrim=-5
scalar=122
scalar-=121
template=simple
-mixer-
src=AIL DR1
dest=Ch6

-trim1-
src=LEFT_V
pos=TRIMLV+
neg=TRIMLV-
-trim2-
src=RIGHT_V
pos=TRIMRV+
neg=TRIMRV-
-trim3-
src=LEFT_H
pos=TRIMLH+
neg=TRIMLH-
-trim4-
src=RIGHT_H
pos=TRIMRH+
neg=TRIMRH-
-timer1-
type=countdown
-datalog-
switch=None
rate=1 sec
-safety-
Auto=min
-gui-128x64-
V-trim=55,10,1
H-trim=1,59,3
V-trim=69,10,2
H-trim=78,59,4
Big-box=2,12,Ch1
Small-box=2,28,Timer1
Small-box=2,38,Timer2
Small-box=2,48,Timer3
Bargraph=79,30,Ch1
Bargraph=85,30,Ch2
Bargraph=91,30,Ch3
Bargraph=97,30,Ch4
Bargraph=103,30,Ch5
Bargraph=109,30,Ch6
Bargraph=115,30,Ch7
Bargraph=121,30,Ch8
Toggle=75,13,1,64,128,FMODE
Toggle=84,13,2,65,129,MIX
Toggle=93,13,0,5,0,ELE DR
Toggle=102,13,0,4,0,AIL DR
Toggle=111,13,0,8,0,GEAR
Toggle=120,13,0,3,0,RUD DR
Battery=102,1
TxPower=75,1


Thanks for helping. I am excited to figure this out so I can do a bit more with it!

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

Time to create page: 0.032 seconds
Powered by Kunena Forum