Heading RCADev

 

HOME

PHANTOM UAV

VACUUM FORMING

OpenTX

CONTACT ME

 

 

Previous Page App Note 22

Next Page App Note 24

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.

http://www.maaa.asn.au/images/pdfs/forms/Form-017-POWER-GOLD-WINGS.pdf

 

These are the manoeuvres.

 

No.

Manouvres

Audio Announcement

Audio File

2

Start up, taxi, position for take off.

Taxi to take off position

gwing02.wav

3

Take off.

Take off

gwing03.wav

4

Outward figure of eight.

Outward figure of eight

gwing04.wav

5

Inward figure of eight.

Inward figure of eight

gwing05.wav

6

Procedure turn

Procedure turn

gwing06.wav

7

Immelman

Immelman

gwing07.wav

8

Three inside loops.

Three inside loops

gwing08.wav

9

Cuban eight

Cuban eight

gwing09.wav

10

Three spins

Three spins

gwing10.wav

11

Inverted flight, 5 seconds

Inverted flight, 5 seconds

gwing11.wav

12

Three horizontal rolls

Three horizontal rolls

gwing12.wav

13

Landing circuit

Landing circuit

gwing13.wav

14

Landing, roll out, stop.

Land, roll out, stop.

gwing14.wav

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.

Taranis Code

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.

 

Number

Function

V1

V2

AND Switch

Duration

Delay

LS8

Edge

!SB

[0.0:--]

---

---

N/A

LS9

Edge

!SB

[0.0:--]

---

---

N/A

 

Number

Source

Function

Parameter 1

Parameter 2

Check Box

SF28

L8

Adjust

GV1

+=1

ticked

SF29

L9

Adjust

GV1

-=1

ticked

 

GV1 is confined to values 2 through 14 with these logic switches and special functions.

 

Number

Function

V1

V2

AND Switch

Duration

Delay

LS10

a>x

GV1

14

---

---

---

LS11

a<x

GV1

2

---

---

---

 

Number

Source

Function

Parameter 1

Parameter 2

Check Box

SF30

L10

Adjust

GV1

2

ticked

SF31

L11

Adjust

GV1

14

ticked

 

These logic switches each detect a unique GV1 value.

 

Number

Function

V1

V2

AND Switch

Duration

Delay

LS12

a=x

GV1

2

---

---

---

LS13

a=x

GV1

3

---

---

---

LS14

a=x

GV1

4

---

---

---

LS15

a=x

GV1

5

---

---

---

LS16

a=x

GV1

6

---

---

---

LS17

a=x

GV1

7

---

---

---

LS18

a=x

GV1

8

---

---

---

LS19

a=x

GV1

9

---

---

---

LS20

a=x

GV1

10

---

---

---

LS21

a=x

GV1

11

---

---

---

LS22

a=x

GV1

12

---

---

---

LS23

a=x

GV1

13

---

---

---

LS24

a=x

GV1

14

---

---

---

 

These special functions use the logic switches above to play the audio files.

 

Number

Source

Function

Parameter 1

Parameter 2

Check Box

SF32

LS12

Play Track

gwing02.wav

 

1x

SF33

LS13

Play Track

gwing03.wav

 

1x

SF34

LS14

Play Track

gwing04.wav

 

1x

SF35

LS15

Play Track

gwing05.wav

 

1x

SF36

LS16

Play Track

gwing06.wav

 

1x

SF37

LS17

Play Track

gwing07.wav

 

1x

SF38

LS18

Play Track

gwing08.wav

 

1x

SF39

LS19

Play Track

gwing09.wav

 

1x

SF40

LS20

Play Track

gwing10.wav

 

1x

SF41

LS21

Play Track

gwing11.wav

 

1x

SF42

LS22

Play Track

gwing12.wav

 

1x

SF43

LS23

Play Track

gwing13.wav

 

1x

SF44

LS24

Play Track

gwing14.wav

 

1x

 

Phantom Divide

 

Previous Page App Note 22

Next Page App Note 24

 

Footer RCADev