Need help with configuring 9x custom switches
Need help with configuring 9x custom switches
I am seeking advice on setting up some custom voices on my 9x (with Opentx-r-2249). In my project I'm providing an external PPM signal into the trainer input that is mixed to CH5 (and this part is working fine). I would like to have a different voice msg (flight mode) announcement as the CH5 pulse value changes. For example:
Msg 1 = 1000mS
Msg 2 - 1250mS
Msg 3 = 1500mS
Msg 4 = 1750mS
Msg 5 = 2000mS
The message needs to be announced upon a change of the pulse value (and not repeat over and over). I suspect that this is a classic setup for someone that has a 9x (with voice mod) and a APM equipped multi-rotor. So it would be awesome if someone could provide a link that shows an example on how this should be configured.
- Thomas
Msg 1 = 1000mS
Msg 2 - 1250mS
Msg 3 = 1500mS
Msg 4 = 1750mS
Msg 5 = 2000mS
The message needs to be announced upon a change of the pulse value (and not repeat over and over). I suspect that this is a classic setup for someone that has a 9x (with voice mod) and a APM equipped multi-rotor. So it would be awesome if someone could provide a link that shows an example on how this should be configured.
- Thomas
Re: Need help with configuring 9x custom switches
Thought I had this solved, but still working on it. I've created the flight phases and that is working great (the 9X LCD correctly reports the flight modes). But I need help with the voice announcements, which work similar to this video shows:
[BBvideo 425,350]http://www.youtube.com/watch?v=HWE3PVE0E9o[/BBvideo]
My working solution requires *ALL* of the custom switches and so now I don't have any spares to use for the other things I want to voice announce. Maybe there's a better way, so I'll post screenshots of my solution for review.
- Thomas
[BBvideo 425,350]http://www.youtube.com/watch?v=HWE3PVE0E9o[/BBvideo]
My working solution requires *ALL* of the custom switches and so now I don't have any spares to use for the other things I want to voice announce. Maybe there's a better way, so I'll post screenshots of my solution for review.
- Thomas
Re: Need help with configuring 9x custom switches
Here's the details on how I implemented my flight mode announcements. My solution takes too many custom switches so I need help compacting it down to use less of them.
I only needed four flight modes, which trigger when PPM5 (via the trainer port) is at 1000mS, 1250mS, 1500mS, and 1750mS. But in the end I consumed all the custom switches for the flight mode voice announcements.
My mix page: My Custom Switches: My Custom Functions: Is there any chance that there's a more efficient way to do this? If not, then I will submit a new feature wish request to the developers. I've got ideas.
Thomas
I only needed four flight modes, which trigger when PPM5 (via the trainer port) is at 1000mS, 1250mS, 1500mS, and 1750mS. But in the end I consumed all the custom switches for the flight mode voice announcements.
My mix page: My Custom Switches: My Custom Functions: Is there any chance that there's a more efficient way to do this? If not, then I will submit a new feature wish request to the developers. I've got ideas.
Thomas
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: Need help with configuring 9x custom switches
Why don't you use the AND column at the right? It seems to me that you can spare CS2, CS3 and CS4
Re: Need help with configuring 9x custom switches
That is a great idea. With five flight modes your method indeed saves three custom switches. Unfortunately I need to free up a few more to handle my telemetry requirements. Any further suggestions would be fantastic.
Here's screenshots of the changes.
Custom Switches: Custom Functions: Five voice files were created to announce the flight modes, as follows:
0190: Manual Mode
0191: Stable Mode
0192: Loiter (GPS Hold)
0193: Home (GPS RTL)
0194: Circle
Hopefully this information helps out the next guy that needs to do something similar.
- Thomas
Here's screenshots of the changes.
Custom Switches: Custom Functions: Five voice files were created to announce the flight modes, as follows:
0190: Manual Mode
0191: Stable Mode
0192: Loiter (GPS Hold)
0193: Home (GPS RTL)
0194: Circle
Hopefully this information helps out the next guy that needs to do something similar.
- Thomas
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Need help with configuring 9x custom switches
You should be able to save one of CS3 and CS4 by using |a|< x PPM5 20.
This is ON if PPM5 is between -20 and +20.
Mike.
This is ON if PPM5 is between -20 and +20.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Need help with configuring 9x custom switches
Brilliant, that's classic Muntzing.You should be able to save one of CS3 and CS4 by using |a|< x PPM5 20.
So here's the latest screenshots to help the next guy on this same journey:
Custom Switches Screenshot Custom Functions Screenshot Flight Mode Information - Thomas
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Need help with configuring 9x custom switches
Can you not use a !CSx to trigger a voice message?
CS1: a>x PPM5 -60
CS2: a<x PPM5 -20 AND CS1
CS3: |a|<x PPM5 20
CS4: a<x PPM5 60
CS5 a>x PPM5 20 AND CS4
Use !CS1 for one mode.
Use CS2 for the second.
Use CS3 for the third.
Use CS5 for the fourth.
Use !CS4 for the fifth.
Just the 5 custom switches!
Mike.
CS1: a>x PPM5 -60
CS2: a<x PPM5 -20 AND CS1
CS3: |a|<x PPM5 20
CS4: a<x PPM5 60
CS5 a>x PPM5 20 AND CS4
Use !CS1 for one mode.
Use CS2 for the second.
Use CS3 for the third.
Use CS5 for the fourth.
Use !CS4 for the fifth.
Just the 5 custom switches!
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Need help with configuring 9x custom switches
Mike, that's some fantastic Boolean work! I think this issue can be put to rest.
I'd post screenshots but Mike's details are all that's needed. Just enter his magic custom switch logic and go fly.
- Thomas
I'd post screenshots but Mike's details are all that's needed. Just enter his magic custom switch logic and go fly.
- Thomas
Re: Need help with configuring 9x custom switches
I apologize its taking me this long to find the response that MikeB wrote for my question... jhsa brought it up and i started to look for it and I couldnt find the response... This morning I tried again and found...
MikeB wrote:
Adding more custom switches causes the EEPROM structure to change, needing all saved models to be re-entered, and making eepe no longer compatible.
You have missed the possibility of using !SW1 (meaning NOT SW1, i.e. TRUE when SW1 is OFF. So you do not need SW2, SW5 or SW8.
SW1 v<ofs CH5 -80
SW2 --- --- ---
SW3 v<ofs CH5 -30
SW4 AND !SW1 SW3
SW5 --- --- ---
SW6 v<ofs CH5 0
SW7 AND !SW3 SW6
SW8 --- --- ---
SW9 v<ofs CH5 30
SWA AND !SW6 SW9
SWB --- --- ---
SWC v>ofs CH5 80
You now have 4 spare custom switches for your remaining mode.
Mike.
But it sounds like you got your answer,,,
apologies..
MikeB wrote:
Adding more custom switches causes the EEPROM structure to change, needing all saved models to be re-entered, and making eepe no longer compatible.
You have missed the possibility of using !SW1 (meaning NOT SW1, i.e. TRUE when SW1 is OFF. So you do not need SW2, SW5 or SW8.
SW1 v<ofs CH5 -80
SW2 --- --- ---
SW3 v<ofs CH5 -30
SW4 AND !SW1 SW3
SW5 --- --- ---
SW6 v<ofs CH5 0
SW7 AND !SW3 SW6
SW8 --- --- ---
SW9 v<ofs CH5 30
SWA AND !SW6 SW9
SWB --- --- ---
SWC v>ofs CH5 80
You now have 4 spare custom switches for your remaining mode.
Mike.
But it sounds like you got your answer,,,
apologies..
Custom 9x with M64/Telemetry Mod
Re: Need help with configuring 9x custom switches
I just redid mine, the Mike new solution is much nicer, now we have even more switches to save... Thanks Mike!
Custom 9x with M64/Telemetry Mod