Multifunction Momentary Switch
This tutorial shows you how to get more out of your momentary switch. Its pretty simple to set up the momentary switch to do something, like reset a timer or read out your current altitude. But, what if we want it to do more than that? What if we want it to reset the timer and read out the current altitude, and I’m not talking stacking the special functions. We can do it so that a quick flick reads the altitude, a hold of 2-4 seconds tells you your pack voltage, 4-6 seconds enters the iNav OSD menu, and 6-8 seconds resets the timer. These are all just examples, what you can do is only limited by your imagination, how well you can remember a beep sequence, and how long you can hold your finger on the switch. The most important thing is to order your options, so that the things you may want to activate in flight are sooner, and things that can be done on the ground are later in the list.
How this is set up
I’ve tried to come up with a concept to easier explain this functionality. What I’ve come up with is to call each command a switch “position”. Each switch “position” is comprised of 2 logical switches and 2 special functions (for basic operations). The first logical switch sets the beginning of the position, which triggers a special function to make a sound. I’m just using beeps, but you could have a different sound for each position. You could even have a voice to say what each position is, but you would need to lengthen the size of the position. The idea is, as soon as you hear the sound you want, let go of the momentary switch.
The second logical switch defines the length of and captures the release of the momentary switch. In some cases, w need to add an extra logical switch. For example, if you want to have a switch position to enter the iNav OSD menu, we must make sure that the system is disarmed before we can grant access. The triggering of this logical switch will enable the special function to do it’s thing.
Example
In the example below, I have set up 4 switch positions:
- Option 1 – When the switch is flicked, it will read out the altitude
- Option 2 – Reset the flight timer
- Option 3 – Enter the iNav OSD menu
- Option 4 – Calibrate the compass
As I said earlier, you can pretty much get this to do anything. But, I thought these examples may be useful to people.
RC Programming
OpenTX Logical Switches
# | Function | V1 | V2 | AND Switch | Duration | Delay |
---|---|---|---|---|---|---|
Option 1 (Read Alt) Sound | ||||||
L01 | Edge | SH↓ | 0.0 | (Instant) | 0.0 | 0.0 | |
Option 1 (Read Alt) Action | ||||||
L02 | Edge | SH↓ | 0.0 | 1.5 | 0.0 | 0.0 | |
Option 2 (Reset Timer) Sound | ||||||
L03 | Edge | SH↓ | 1.5 | (Instant) | 0.0 | 0.0 | |
Option 2 (Reset Timer) Action | ||||||
L04 | Edge | SH↓ | 1.5 | 3.0 | 0.0 | 0.0 | |
Option 3 (OSD Menu) Sound | ||||||
L05 | Edge | SH↓ | 3.0 | (Instant) | SF↓ | 0.0 | 0.0 |
Option 3 (OSD Menu) Action | ||||||
L06 | Edge | SH↓ | 3.0 | 4.5 | SF↓ | 1.1 | 0.0 |
Option 4 (Calibrate Compass) Sound | ||||||
L07 | Edge | SH↓ | 4.5 | (Instant) | SF↓ | 0.0 | 0.0 |
Option 4 (Calibrate Compass) Action | ||||||
L08 | Edge | SH↓ | 4.5 | 6.0 | SF↓ | 1.1 | 0.0 |
Armed allowed options end sound | ||||||
L09 | Edge | SH↓ | 3.0 | (Instant) | SF↑ | 0.0 | 0.0 |
Unarmed only options end sound | ||||||
L10 | Edge | SH↓ | 6.0 | (Instant) | SF↓ | 0.0 | 0.0 |
OpenTX Special Functions
# | Switch | Action | Parameters | Enable |
---|---|---|---|---|
Option 1 (Read Alt) Sound | ||||
SF01 | L01 | Play Track | Altitude | !x1 |
Option 1 (Read Alt) Action | ||||
SF02 | L02 | Play Value | Alt | !x1 |
Option 2 (Reset Timer) Sound | ||||
SF03 | L03 | Play Track | Reset Timer | !x1 |
Option 2 (Reset Timer) Action | ||||
SF04 | L04 | Reset | Timer 1 | ☑ |
Option 3 (OSD Menu) Sound | ||||
SF05 | L05 | Play Track | OSD Menu | !x1 |
Option 3 (OSD Menu) Action | ||||
SF06 | L06 | Override CH1 | 0 | ☑ |
SF07 | L06 | Override CH2 | 100 | ☑ |
SF08 | L06 | Override CH3 | 0 | ☑ |
SF09 | L06 | Override CH4 | -100 | ☑ |
Option 4 (Calibrate Compass) Sound | ||||
SF10 | L07 | Play Track | Calibrate Compass | !x1 |
Option 4 (Calibrate Compass) Action | ||||
SF11 | L08 | Override CH1 | 0 | ☑ |
SF12 | L08 | Override CH2 | -100 | ☑ |
SF13 | L08 | Override CH3 | 100 | ☑ |
SF14 | L08 | Override CH4 | 100 | |
Armed allowed options end sound | ||||
SF15 | L09 | Play Sound | Beep 1 | !x1 |
Unarmed only options end sound | ||||
SF16 | L10 | Play Sound | Beep 1 | !x1 |