- Posts: 278
Trim button as momentary switches
- ajtank
- Topic Author
- Offline
Less
More
17 Oct 2016 05:55 #55025
by ajtank
Trim button as momentary switches was created by ajtank
I have a stock transmitter that uses trim buttons for the camera gimbal. Press and hold trim+ gives an output of 100 whilst press and hold trim- brings output to -100. When trim is released the output is 0.
On my Devo10 I set trim+ and trim- with step=100 such that the output will toggle between 100, 0, -100. This means I need to press the trim button once to bring output to 0 when the previous output is either 100 or -100.
I try to mimic the stock transmitter operation on Devo10 but in vain. When the trims are set as momentary switches the output is 100 when on but -100 when off. Is there any way to bring the output to 0 when off?
On my Devo10 I set trim+ and trim- with step=100 such that the output will toggle between 100, 0, -100. This means I need to press the trim button once to bring output to 0 when the previous output is either 100 or -100.
I try to mimic the stock transmitter operation on Devo10 but in vain. When the trims are set as momentary switches the output is 100 when on but -100 when off. Is there any way to bring the output to 0 when off?
Please Log in or Create an account to join the conversation.
- Nitro_123
- Offline
Less
More
- Posts: 95
17 Oct 2016 07:13 #55033
by Nitro_123
Replied by Nitro_123 on topic Trim button as momentary switches
Try scale ? Or offset ?
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
Less
More
- Posts: 3333
17 Oct 2016 07:30 #55034
by vlad_vy
Replied by vlad_vy on topic Trim button as momentary switches
Input = needed channel (ex. Ch6)
Trim Step = 100
Trim - = TRIM L-
Trim + = TRIM L+
Switch = None
Trim Step = 100
Trim - = TRIM L-
Trim + = TRIM L+
Switch = None
Please Log in or Create an account to join the conversation.
- ajtank
- Topic Author
- Offline
Less
More
- Posts: 278
17 Oct 2016 08:48 #55039
by ajtank
I can apply a mixer to bring -100 to 0 but I need another mixer to keep 100 unchanged. The problem is that the trim button cannot be used as a switch to choose the mixer.
Replied by ajtank on topic Trim button as momentary switches
Nitro_123 wrote: Try scale ? Or offset ?
I can apply a mixer to bring -100 to 0 but I need another mixer to keep 100 unchanged. The problem is that the trim button cannot be used as a switch to choose the mixer.
Please Log in or Create an account to join the conversation.
- ajtank
- Topic Author
- Offline
Less
More
- Posts: 278
17 Oct 2016 08:53 - 26 Oct 2016 09:01 #55040
by ajtank
Sorry but I don't get it. I am unsure if I describe my problem clearly. Here is my Devo10 configuration:
[channel12]
template=simple
[mixer]
src=virt1
dest=ch12
[trim1]
src=virt1
pos=TRIM_L+
neg=TRIM_L-
step=100
value=0,0,0
I wish ch12 output is 0 when I release the trim buttons instead of one more press.
Replied by ajtank on topic Trim button as momentary switches
vlad_vy wrote: Input = needed channel (ex. Ch6)
Trim Step = 100
Trim - = TRIM L-
Trim + = TRIM L+
Switch = None
Sorry but I don't get it. I am unsure if I describe my problem clearly. Here is my Devo10 configuration:
[channel12]
template=simple
[mixer]
src=virt1
dest=ch12
[trim1]
src=virt1
pos=TRIM_L+
neg=TRIM_L-
step=100
value=0,0,0
I wish ch12 output is 0 when I release the trim buttons instead of one more press.
Last edit: 26 Oct 2016 09:01 by ajtank.
Please Log in or Create an account to join the conversation.
- ajtank
- Topic Author
- Offline
Less
More
- Posts: 278
18 Oct 2016 06:01 - 18 Oct 2016 08:44 #55083
by ajtank
Replied by ajtank on topic Trim button as momentary switches
Still struggling and I may just give it up.
Last edit: 18 Oct 2016 08:44 by ajtank.
Please Log in or Create an account to join the conversation.
- hexfet
- Away
Less
More
- Posts: 1893
18 Oct 2016 11:59 #55092
by hexfet
Replied by hexfet on topic Trim button as momentary switches
iirc there's a section in
this doc
on using trims as switches.
Please Log in or Create an account to join the conversation.
- ajtank
- Topic Author
- Offline
Less
More
- Posts: 278
18 Oct 2016 15:05 - 18 Oct 2016 16:28 #55103
by ajtank
Replied by ajtank on topic Trim button as momentary switches
Thanks for that. I suppose I have succeeded, here is the new configuration yet a lot more complicated than my last one:
[channel12]
template=complex
[mixer]
src=Virt1
dest=Ch12
usetrim=0
curvetype=greater-than-0
points=0
[mixer]
src=!Virt2
dest=Ch12
usetrim=0
muxtype=add
curvetype=less-than-0
points=0
[virtchan1]
template=complex
[mixer]
src=Virt1
dest=Virt1
scalar=0
[virtchan2]
template=complex
[mixer]
src=Virt2
dest=Virt2
scalar=0
[trim1]
src=Virt1
pos=TRIMLV+
step=193
value=-100,0,0
[trim2]
src=Virt2
pos=TRIMLV-
step=193
value=-100,0,0
[channel12]
template=complex
[mixer]
src=Virt1
dest=Ch12
usetrim=0
curvetype=greater-than-0
points=0
[mixer]
src=!Virt2
dest=Ch12
usetrim=0
muxtype=add
curvetype=less-than-0
points=0
[virtchan1]
template=complex
[mixer]
src=Virt1
dest=Virt1
scalar=0
[virtchan2]
template=complex
[mixer]
src=Virt2
dest=Virt2
scalar=0
[trim1]
src=Virt1
pos=TRIMLV+
step=193
value=-100,0,0
[trim2]
src=Virt2
pos=TRIMLV-
step=193
value=-100,0,0
Last edit: 18 Oct 2016 16:28 by ajtank.
Please Log in or Create an account to join the conversation.
Time to create page: 0.050 seconds
- Home
- Forum
- General
- General Discussions
- Trim button as momentary switches