Wha??
Lemme break it down:
With this set of LUA and WAV files installed, every time the SH switch is pulled the radio calls out the next move in the pattern!
How did this magic happen you ask? I started with a script I found on the net developed by Nigel Sheffield that did this type of function for an earlier version of OpenTX, but it didn't work when I tried to get it to run, and didn't have sound files to go wit hit. So with a couple days of poking around and trying different things, I finally got it working reliably with OpenTX 2.3. And then I figured out how to get the OpenTX Speaker program running so I could create a set of audio files for the NSRCA AMA Club Class Sequence of 10 maneuvers.
And so you don't have to figure all this out from scratch, I'm posting it up here so everyone can start to become master pattern pilots!
Installation Instructions:
0) Download and unzip the Sequence Caller.zip file somewhere handy on your computer.
1) Copy the seqcall.lua file in the transmitter SD card directory SCRIPTS/FUNCTIONS
2) Copy the whole F3club directory to the transmitter SD card to create /SOUNDS/EN/F3club
3) In OpenTX go to the Radio Settings and add a Global Function for SH-down to PlayScript seqcall (see screen capture)
4) In each model go to the Logical Switches and add LS8 and LS9 as Edge functions with V1 SH-down and V2 with 0 and 1.5 instant effect (see other screen capture)
5) Go fly with guidance!
If you use SH-down for something else and want to use a different switch, just use whatever switch you like in the Global and Logical functions. If you already have something in LS8 and LS9, edit the lua script lines 5 & 6 to pick a different logical switch.
If you want to use this for a different sequence, create the audio files and reorganize the list of file names in line 2. Make sure no file names are longer than 6 characters or OpenTX won't play them. Also make sure they are 32khz sampled mono wav files.
If you want to mess with the LUA script to try and eliminate the need for logical switches I did leave some debugging code in there - just open the debugging window in companion to see the variables print out each cycle. When I first got the script it didn't use logical switches, but this was the only way I could figure out how to make it go.
Lemme know how it works for you and what you end up doing with it!
Lemme break it down:
- OpenTX - the software that runs FrSky on and some other radios
- Pattern - a series of aerobatic maneuvers performed in a specific order for a competition
- Sequence Caller - an assistant who stands near the pilot and calls out the next maneuver in the sequence
With this set of LUA and WAV files installed, every time the SH switch is pulled the radio calls out the next move in the pattern!
How did this magic happen you ask? I started with a script I found on the net developed by Nigel Sheffield that did this type of function for an earlier version of OpenTX, but it didn't work when I tried to get it to run, and didn't have sound files to go wit hit. So with a couple days of poking around and trying different things, I finally got it working reliably with OpenTX 2.3. And then I figured out how to get the OpenTX Speaker program running so I could create a set of audio files for the NSRCA AMA Club Class Sequence of 10 maneuvers.
And so you don't have to figure all this out from scratch, I'm posting it up here so everyone can start to become master pattern pilots!
Installation Instructions:
0) Download and unzip the Sequence Caller.zip file somewhere handy on your computer.
1) Copy the seqcall.lua file in the transmitter SD card directory SCRIPTS/FUNCTIONS
2) Copy the whole F3club directory to the transmitter SD card to create /SOUNDS/EN/F3club
3) In OpenTX go to the Radio Settings and add a Global Function for SH-down to PlayScript seqcall (see screen capture)
4) In each model go to the Logical Switches and add LS8 and LS9 as Edge functions with V1 SH-down and V2 with 0 and 1.5 instant effect (see other screen capture)
5) Go fly with guidance!
If you use SH-down for something else and want to use a different switch, just use whatever switch you like in the Global and Logical functions. If you already have something in LS8 and LS9, edit the lua script lines 5 & 6 to pick a different logical switch.
If you want to use this for a different sequence, create the audio files and reorganize the list of file names in line 2. Make sure no file names are longer than 6 characters or OpenTX won't play them. Also make sure they are 32khz sampled mono wav files.
If you want to mess with the LUA script to try and eliminate the need for logical switches I did leave some debugging code in there - just open the debugging window in companion to see the variables print out each cycle. When I first got the script it didn't use logical switches, but this was the only way I could figure out how to make it go.
Lemme know how it works for you and what you end up doing with it!
Attachments
Last edited: