Devo 10 - use upper Right Trim for Panic mode?

More
18 Jun 2016 18:12 - 18 Jun 2016 18:34 #50780 by D_an_W
Evening folks, my Devo 10 arrived today and i am in the process of editing my Devo 7E files to work with it.

I had the idea of using the upper right trim (TRIM_R from what I can tell) as a Momentary button to activate Panic Mode on my Nano CP S as then the button wouldn't need turning off, I could just let go.
I currently have Panic Mode set to the AILE D/R switch and from what I can tell it works ok, what I can't figure out how to do is to have the TRIM_R switch do the job in place of the AIL DR switch.

If anyone wouldn't mind taking a look, this is my current ini file for the Nano CP S with slightly tamed down settings in Agility mode:

name=Nano CP S Bgn.
mixermode=Advanced
icon=NanoCPS.bmp

[radio]
protocol=DSMX
num_channels=7
tx_power=150mW

[protocol_opts]
Telemetry=Off

[channel1]
safetysw=RUD DR0
safetyval=-107
template=expo_dr
[mixer]
src=THR
dest=Ch1
curvetype=5point
points=-100,-50,0,50,100
[mixer]
src=THR
dest=Ch1
switch=MIX1
curvetype=5point
points=-100,-50,0,50,100
[mixer]
src=THR
dest=Ch1
switch=MIX2
curvetype=fixed

[channel2]
template=expo_dr
[mixer]
src=AIL
dest=Ch2
curvetype=expo
points=30,30
[mixer]
src=AIL
dest=Ch2
switch=FMODE1
scalar=80
curvetype=expo
points=30,30
[mixer]
src=AIL
dest=Ch2
switch=FMODE0
scalar=60
curvetype=expo
points=30,30

[channel3]
template=expo_dr
[mixer]
src=ELE
dest=Ch3
curvetype=expo
points=30,30
[mixer]
src=ELE
dest=Ch3
switch=FMODE1
scalar=80
curvetype=expo
points=30,30
[mixer]
src=ELE
dest=Ch3
switch=FMODE0
scalar=60
curvetype=expo
points=30,30

[channel4]
max=190
min=-190
template=expo_dr
[mixer]
src=RUD
dest=Ch4
curvetype=expo
points=0,0

[channel5]
template=complex
[mixer]
src=Virt1
dest=Ch5
switch=AIL DR0
[mixer]
src=Virt1
dest=Ch5
switch=AIL DR1
offset=40
curvetype=expo
points=0,0

[channel6]
template=complex
[mixer]
src=THR
dest=Ch6
curvetype=5point
points=-40,-20,0,50,100
[mixer]
src=THR
dest=Ch6
curvetype=5point
points=-40,-20,0,50,100
[mixer]
src=THR
dest=Ch6
switch=MIX2

[virtchan1]
template=complex
[mixer]
src=AIL
dest=Virt1
switch=MIX0
usetrim=0
curvetype=fixed
[mixer]
src=AIL
dest=Virt1
switch=MIX1
scalar=0
usetrim=0
curvetype=fixed
[mixer]
src=AIL
dest=Virt1
switch=MIX2
scalar=-100
usetrim=0
curvetype=fixed

[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
src=Ch1
time=240

[timer2]
src=Ch1

[safety]
Ch1=min

[gui-128x64]
Model=1,11
V-trim=55,11,1
H-trim=2,59,3
V-trim=69,11,2
H-trim=77,59,4
Small-box=77,6,None
Small-box=4,47,Timer1
Bargraph=79,30,Ch6
Bargraph=85,30,Ch4
Bargraph=91,30,Ch3
Bargraph=97,30,Ch2
Bargraph=103,30,Ch1
Bargraph=109,30,Ch5
Bargraph=115,30,Ch7
Bargraph=121,30,Ch8
Toggle=78,16,233,235,0,RUD DR
Toggle=90,16,253,255,225,FMODE
Toggle=104,16,192,193,194,MIX
Toggle=116,16,227,230,0,AIL DR
Battery=102,1
TxPower=75,1
quickpage1=Model setup
quickpage2=Mixer
quickpage3=Channel monitor
quickpage4=Telemetry monitor

Many thanks for any help!

*** Walkera Devo 10 * 4-in-1 Module * Deviation v5 *** *** Walkera Devo 7E * A7105 Module * 2x 3 Way Switches * Power Mod * Deviation v5 ***
Last edit: 18 Jun 2016 18:34 by D_an_W.

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

More
19 Jun 2016 21:41 #50826 by mwm
First you need to set up a virtual switch. That needs both a virtual channel and a virtual switch. I've taken some from a working model, changing the names to protect the innocent:
[virtchan2]
name=Panic
template=complex
[mixer]
src=Virt2
dest=Virt2
scalar=0

and the trim:
[virtchan2]
name=Reset
template=complex
[mixer]
src=Virt2
dest=Virt2
scalar=0

The trim is a PITA to do in the model file, because the "magic" trim types are just "magic" values. In the Tx, you set the source to the virtual channel (which if I've already set it up, will be named "Panic" in the above example), scroll the trim step to the magic values, which are "smaller" than 0.1.

After that, you need to fix you mixer to use the new "Panic" switch. That's not obvious, because it's not got a 0 & 1 position. However, you can use reverse it (hit enter when it's in the Source scroll box) to get the 0 position. But you don't really need it, as you can just enable the second mixer with "Panic", and not bother with a switch on the first mixer, as it'll be used whenever the second one isn't. You can also simplify the last mixer by using an "Add" mux type. All together, that looks like:
[channel5]
template=complex
[mixer]
src=Virt1
dest=Ch5
[mixer]
src=AIL
dest=Ch5
switch=Virt2
scalar=-40
muxtype=add
curvetype=fixed

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.

More
19 Jun 2016 21:54 - 20 Jun 2016 05:42 #50827 by D_an_W
Hi Mike, thanks for the reply!

From reading your blog shouldn't the trim look more like this?
[trim5]
src=Virt2
pos=TRIM_R+
step=193
value=-100,0,0

EDIT: From testing in the emulator the config below appears to work, I have added the Virtual Switch to both TRIM_L+ & R+ so pressing either one of the upper trim button up will enable panic mode and just letting go returns it back to normal...thanks Mike :woohoo:
name=Nano CP S Bgn.
mixermode=Advanced
icon=NanoCPS.bmp

[radio]
protocol=DSMX
num_channels=7
tx_power=150mW

[protocol_opts]
Telemetry=Off

[channel1]
safetysw=RUD DR0
safetyval=-107
template=expo_dr
[mixer]
src=THR
dest=Ch1
curvetype=5point
points=-100,-50,0,50,100
[mixer]
src=THR
dest=Ch1
switch=MIX1
curvetype=5point
points=-100,-50,0,50,100
[mixer]
src=THR
dest=Ch1
switch=MIX2
curvetype=fixed

[channel2]
template=expo_dr
[mixer]
src=AIL
dest=Ch2
curvetype=expo
points=30,30
[mixer]
src=AIL
dest=Ch2
switch=FMODE1
scalar=80
curvetype=expo
points=30,30
[mixer]
src=AIL
dest=Ch2
switch=FMODE0
scalar=60
curvetype=expo
points=30,30

[channel3]
template=expo_dr
[mixer]
src=ELE
dest=Ch3
curvetype=expo
points=30,30
[mixer]
src=ELE
dest=Ch3
switch=FMODE1
scalar=80
curvetype=expo
points=30,30
[mixer]
src=ELE
dest=Ch3
switch=FMODE0
scalar=60
curvetype=expo
points=30,30

[channel4]
max=190
min=-190
template=expo_dr
[mixer]
src=RUD
dest=Ch4
curvetype=expo
points=0,0

[channel5]
template=complex
[mixer]
src=Virt1
dest=Ch5
[mixer]
src=AIL
dest=Ch5
switch=Virt2
scalar=40
muxtype=add
curvetype=fixed
[mixer]
src=AIL
dest=Ch5
switch=Virt3
scalar=40
muxtype=add
curvetype=fixed

[channel6]
template=complex
[mixer]
src=THR
dest=Ch6
curvetype=5point
points=-40,-20,0,50,100
[mixer]
src=THR
dest=Ch6
curvetype=5point
points=-40,-20,0,50,100
[mixer]
src=THR
dest=Ch6
switch=MIX2

[virtchan1]
name=FMode
template=complex
[mixer]
src=AIL
dest=Virt1
switch=MIX0
usetrim=0
curvetype=fixed
[mixer]
src=AIL
dest=Virt1
switch=MIX1
scalar=0
usetrim=0
curvetype=fixed
[mixer]
src=AIL
dest=Virt1
switch=MIX2
scalar=-100
usetrim=0
curvetype=fixed

[virtchan2]
name=Panic L
template=complex
[mixer]
src=Virt2
dest=Virt2
scalar=0

[virtchan3]
name=Panic R
template=complex
[mixer]
src=Virt3
dest=Virt3
scalar=0

[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-

[trim5]
src=Virt2
pos=TRIM_L+
step=193
value=-100,0,0

[trim6]
src=Virt3
pos=TRIM_R+
step=193
value=-100,0,0

[timer1]
type=countdown
src=Ch1
time=240

[timer2]
src=Ch1
[datalog]
switch=None
rate=1 sec

[safety]
Ch1=min

[gui-128x64]
Model=1,11
V-trim=55,11,1
H-trim=2,59,3
V-trim=69,11,2
H-trim=77,59,4
Small-box=77,6,None
Small-box=4,47,Timer1
Bargraph=79,30,Ch6
Bargraph=85,30,Ch4
Bargraph=91,30,Ch3
Bargraph=97,30,Ch2
Bargraph=103,30,Ch1
Bargraph=109,30,Ch5
Bargraph=115,30,Ch7
Bargraph=121,30,Ch8
Toggle=78,16,233,235,0,RUD DR
Toggle=90,16,253,255,225,FMODE
Toggle=104,16,192,193,194,MIX
Toggle=116,16,227,230,0,Virt2
Toggle=116,16,227,230,0,Virt3
Battery=102,1
TxPower=75,1
quickpage1=Model setup
quickpage2=Mixer
quickpage3=Channel monitor
quickpage4=Telemetry monitor

*** Walkera Devo 10 * 4-in-1 Module * Deviation v5 *** *** Walkera Devo 7E * A7105 Module * 2x 3 Way Switches * Power Mod * Deviation v5 ***
Last edit: 20 Jun 2016 05:42 by D_an_W.

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

Time to create page: 0.032 seconds
Powered by Kunena Forum