Want override switch for flight mode on hex

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
Moby58
Posts: 25
Joined: Wed Sep 12, 2012 7:53 am
Country: Australia
Location: Thornlie
Contact:

Want override switch for flight mode on hex

Post by Moby58 »

Hi guys,

Setting up my Hex.
9x running opentx-r2647

I have the 6 position mod done so I can get a number of flight modes on the 1 switch for APM 2.5
So, I have STABILIZE, ALT HOLD, LOITER, CIRCLE, AUTO, & STABILIZE.
So that I can see the mode in the display of 9x, I have done 6 custom switches, with the output value of the 6-pos switch assigned to each. (eg CS1 = -100, CS2 = -41, etc)
I then have set up flight modes with each going to a custom switch. Because there is only 5 flight modes, position 6 goes back to stabilize. (FM0 = CS1 = STABILIZE, FM1 = CS2 = ALT HOLD, etc)

Now, because it is awkward to get to the 6-pos switch, I would like to have LOITER on the physical THR CUT switch of the 9x, and for it to override any mode the 6-pos switch is in. So, whether in STABILIZE, CIRCLE, etc, flick the switch with left finger and the hex goes to LOITER

for my initial P3 mix (the 6-pos switch) on CH5, I have
  • source P3
    weight 100
    offset 0
    trim off
    curve Diff 0
    mode 01234 inverted (so active all modes)
    switch ---
    warning off
    multpx replace
and this all works great as it should

I have then added another P3 mix for channel 5 (after the first) with
  • source P3
    weight 16
    offset 0
    trim off
    curve Diff 0
    mode 01234 inverted (so active all modes)
    switch THR
    warning off
    multpx replace
but when I check the outputs in APM, when the THR CUT switch is on, the new mix is being added to whatever the 6-pos switch is on, instead of replacing with a fixed value.

SO, what have I done wrong? or is there a better way to achieve what I want??
Regards,

Moby
=============================================================================
Turnigy 9XR Pro (soon to be with FrSky DHT internal mod)
FrSky Taranis Plus, FrSky Taranis, Spektrum DX9, Spektrum DX6i

Moby58
Posts: 25
Joined: Wed Sep 12, 2012 7:53 am
Country: Australia
Location: Thornlie
Contact:

Re: Want override switch for flight mode on hex

Post by Moby58 »

Hi guys,
Is this really too hard? or is it not possible at all?? I thought someone would have an idea
Regards,

Moby
=============================================================================
Turnigy 9XR Pro (soon to be with FrSky DHT internal mod)
FrSky Taranis Plus, FrSky Taranis, Spektrum DX9, Spektrum DX6i
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Want override switch for flight mode on hex

Post by Kilrah »

Use a custom switch to trigger that flight mode, with an OR condidtion between the THR switch and the initial flight mode trigger?
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Re: Want override switch for flight mode on hex

Post by sgofferj »

Easy:

Source: MAX
Weight: 16 (or whatever value you need)
Switch: Thr
Multpx: replace

If you use P3 as source with a weight of 16, flipping the THR switch causes the 16% of the current value of P3 to be assigned to channel 5.
I have exactly this config, just with ELE being my "panic button" :).
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Re: Want override switch for flight mode on hex

Post by sgofferj »


Moby58
Posts: 25
Joined: Wed Sep 12, 2012 7:53 am
Country: Australia
Location: Thornlie
Contact:

Re: Want override switch for flight mode on hex

Post by Moby58 »

sgofferj wrote:Easy:

Source: MAX
Weight: 16 (or whatever value you need)
Switch: Thr
Multpx: replace

If you use P3 as source with a weight of 16, flipping the THR switch causes the 16% of the current value of P3 to be assigned to channel 5.
I have exactly this config, just with ELE being my "panic button" :).
Thanks, exactly what I needed!!! It's the source where I had the probs with
Regards,

Moby
=============================================================================
Turnigy 9XR Pro (soon to be with FrSky DHT internal mod)
FrSky Taranis Plus, FrSky Taranis, Spektrum DX9, Spektrum DX6i
Moby58
Posts: 25
Joined: Wed Sep 12, 2012 7:53 am
Country: Australia
Location: Thornlie
Contact:

Re: Want override switch for flight mode on hex

Post by Moby58 »

sgofferj wrote:... or you could use that: http://openrcforums.com/forum/viewtopic.php?f=84&t=4010 ...
Looks good
Regards,

Moby
=============================================================================
Turnigy 9XR Pro (soon to be with FrSky DHT internal mod)
FrSky Taranis Plus, FrSky Taranis, Spektrum DX9, Spektrum DX6i

Post Reply

Return to “openTx”