Two timers for two battery types / two flight mode

More
12 Oct 2013 18:06 #14539 by myxiplx
Hi folks,

I've just bought a second set of batteries for my mCPX BL, giving me one set of 200mAh and one set of 300mAh batteries. I didn't want to have to remember to switch models, so I've setup two sets of timers and a switch to choose between them. Whichever timer I have selected starts when TH comes off.
  • With the Gear switch up I'm using the top timer, giving me 3m15s on my standard batteries.
  • With the Gear switch down I use the bottom timer, giving me 4m30s on the new batteries.

    I figure the same approach would work for anybody who sometimes has different flight styles, so here's the code I'm using:

[virtchan1]
template=complex
[mixer]
src=RUD DR0
dest=Virt1
usetrim=0
muxtype=replace
curvetype=expo
points=0,0
[mixer]
src=RUD DR0
dest=Virt1
switch=GEAR1
usetrim=0
scalar=-100
muxtype=replace
curvetype=fixed

[virtchan2]
template=complex
[mixer]
src=RUD DR0
dest=Virt2
usetrim=0
muxtype=replace
curvetype=expo
points=0,0
[mixer]
src=RUD DR0
dest=Virt2
switch=GEAR0
usetrim=0
scalar=-100
muxtype=replace
curvetype=fixed

[timer1]
type=countdown
src=Virt1
time=195
[timer2]
type=countdown
src=Virt2
time=270

[gui-qvga]
trim=4in
barsize=half
box1=Timer1
box2=Timer2
box3=Ch6
...

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

Time to create page: 0.024 seconds
Powered by Kunena Forum