Heading RCADev

 

HOME

PHANTOM UAV

VACUUM FORMING

OpenTX

CONTACT ME

 

 

Previous Page – App Note 14

Next Page – App Note 16

OpenTX - Application Note 15

Flaps Controlled by a Slider

 

Set up control of flaps by the right slider RS. Announce audio tracks when flaps are up and when they are not up.

 

A mixer line is used to control the flaps by the right slider RS. In these examples, the flaps are on channel six. It depends on the physical set up of the servos that determines whether the channel value needs to be inverted or not. A non-inverted example and an inverted example are described. Finally, standard library audio tracks are used to announce when the flaps are raised and when they are lowered.

Non-Inverted Control Signal

When RS is up, we require the flaps to be up also. The value of RS in the up position is –100%. Also, for the flaps to be in the up position, the value of channel six also has to be –100%. This means that we do not need to invert the control. If, however, the control does need to be inverted, see ‘Inverted Control Signal’ below

The mixer line looks like this.

 

Channel Number

 

Weight

 

Source

 

Curve

 

Trim

 

Switch

Delay /

Slow

Mix Name

CH6

100

RS

 

 

 

 

Flap

 

The full description is as follows.

 

FIELD

Parameter

Description

Mix Name

Flap

 

Source

RS

 

Weight

100

Default setting

Offset

0

Default setting

Trim

Not ticked

 

Curve

Diff 0

Default setting

Modes

0 1 2 3 4 5 6 7 8

Default setting

Switch

---

A switch is not required because RS controls the flaps all the time.

Warning

OFF

Default setting

Multplx

Add

Default setting

Delay Up

0.0

Default setting

Delay Dn

0.0

Default setting

Slow Up

0.0

Default setting

Slow Dn

0.0

Default setting

Inverted Control Signal

When RS is up, we require the flaps to be up also. The value of RS in the up position is –100%. However, for the flaps to be in the up position, the value of channel six also has to be +100%. This means that we need to invert the channel.

There are two ways to invert the channel.

1.      One way is to invert channel six on the Servos screen. In this case, the mixer line is the same as the line in the Non-Inverted example above.

2.      The other way to invert the channel is to use a curve here in the mixer. We will use curve CV1 to do this. The summary line looks like this.

 

Channel Number

 

Weight

 

Source

 

Curve

 

Trim

 

Switch

Delay /

Slow

Mix Name

CH6

100

RS

CV1

 

 

 

Flap

 

The full description is as follows.

 

FIELD

Parameter

Description

Mix Name

Flap

 

Source

RS

 

Weight

100

Default setting

Offset

0

Default setting

Trim

Not ticked

 

Curve

Cstm CV1

Use CV1 to invert the channel.

Modes

0 1 2 3 4 5 6 7 8

Default setting

Switch

---

A switch is not required because RS controls the flaps all the time.

Warning

OFF

Default setting

Multplx

Add

Default setting

Delay Up

0.0

Default setting

Delay Dn

0.0

Default setting

Slow Up

0.0

Default setting

Slow Dn

0.0

Default setting

 

Curve CV1 only requires two points and is set up as follows.

 

Audio Announcements

The flaps are considered up when channel six output is greater than 95%. This is detected using a logical switch LS1 as follows

 

Logical Switch

Number

 

 

Function

 

 

V1

 

 

V2

 

 

Switch

 

 

Duration

 

 

Delay

LS1

a>x

CH6

95

---

---

---

 

LS1 now becomes ON when channel 6 is greater than 95% and is OFF otherwise. LS1 is used to play tracks in two special functions. Special functions SF1 and SF2 are used in this example to play standard files flapup.wav for ‘flaps up’ and flapdn.wav for ‘flaps down. These two files are already on the SD card in the [SOUNDS] folder.

 

Function Number

Source

Function

Parameter 1

Parameter 2

Check Box

SF1

L1

Play Track

flapup

 

1x

SF2

!L1

Play Track

flapdn

 

1x

 

SF1 plays track ‘flaps up’ once when L1 turns ON.

SF2 plays track ‘flaps down’ once when L1 turns OFF.

 

Phantom Divide

 

Previous Page – App Note 14

Next Page – App Note 16

 

Footer RCADev