getValue missing switches lua script

General Help and support for the Taranis Radio.
Post Reply
bobferguson
Posts: 30
Joined: Mon Sep 30, 2013 10:17 pm
Country: -

getValue missing switches lua script

Post by bobferguson »

I wondering why they left out switches SG & SH in getValue(src)? I wanted to use SH in my script. And why only channel 1 beside Rud Ail etc. Is there something special about CH1 vs Ail. I am using getValue(..._SA SB etc) to set options in my script.

bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: getValue missing switches lua script

Post by bertrand35 »

I just added SG and SH, I didn't need them when I added all others ;) Why do you compare CH1 and Ail ? CH1 is a channel while Ail is a stick!
User avatar
dinamich
Posts: 288
Joined: Mon Apr 01, 2013 1:21 pm
Country: Slovenia
Location: Ljubljana

Re: getValue missing switches lua script

Post by dinamich »

bobferguson wrote:I wondering why they left out switches SG & SH in getValue(src)? I wanted to use SH in my script. And why only channel 1 beside Rud Ail etc. Is there something special about CH1 vs Ail. I am using getValue(..._SA SB etc) to set options in my script.
MIXSRC_CH1 is a constant for first channel, if you for example want CH16 use getValue(MIXSRC_CH1+15).
projectkk2glider@github

Post Reply

Return to “General help (FrSky Taranis radio)”