OpenTX - Application Note 23
Audio Instruction List Stepped by a Switch
Create a sequence of instructions where the next or previous instruction is announced when a three position switch is raised or lowered.
This program has an application when you are practicing a sequence of manoeuvres and you wish to be prompted for the next manouvre after completing each one. A good example of this is the collection of manoeuvres for Gold Wings.
A full description of the MAAA Fixed Wings Gold Wings is here.
These are the manoeuvres.
Create the Audio Files
The audio tracks can be created using a PC that has a microphone and recording / editing software like Audacity (free to download) or NCH Wavepad. The audio files must be a wav type files, mono 32000Hz.
Transfer the Audio Files to the SD Card
With the radio power off, remove the SD card from the battery compartment of the radio and plug it into the PC. Transfer the wav files to the SD card folder SOUNDS / en. Reinstall the SD card in the radio.
Alternatively, Start the Taranis in BootLoader mode, connect the USB cable between the Taranis and the PC and transfer the files using Windows Explorer.
A global variable GV1 describes the current manouvre number from 2 through 14.
A simple method would be to use spring return switch SH to increment GV1 only. Instead, we use a three position switch SB which increments GV1 in the down position and decrements GV1 in the up position.
Two logic switches LS8 and LS9 detect the SB switch positions and two special functions SF25 and SF26 increment or decrement the global variable value. LS10, LS11, SF27 and SF28 wrap the number around when decrementing below 2 or above 14.
Logic switches LS12 through LS24 detect the different values of GV1. Special functions SF32 through SF44 announce the audio files based on the logic switches.
GV1 is incremented and decremented with these logic switches and special functions.
GV1 is confined to values 2 through 14 with these logic switches and special functions.
These logic switches each detect a unique GV1 value.
These special functions use the logic switches above to play the audio files.