airspeed sensor data with Taranis Global variables

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
jwcalvert
Posts: 3
Joined: Thu Jul 05, 2018 3:35 pm
Country: -

airspeed sensor data with Taranis Global variables

Post by jwcalvert »

Hi everyone,
I have a Taranis 9 plus and a Fr-Sky ASS-70 Airspeed Sensor in my airplane.
The sensor appears to be working great and sending speeds back to my Taranis with no problems.

Now I would like to set up a special function to turn the audio readout on and off at certain airspeeds.
To do this I would like to add two different Global Variables together and then use the result.

How can I add Global Variables? Is it even possible? Or do I have to write a LUA script?

Thanks
Jim Calvert

frater
Posts: 77
Joined: Sat Aug 30, 2014 11:04 pm
Country: -

Re: airspeed sensor data with Taranis Global variables

Post by frater »

You can't control volume with a GVAR. You could create a ticket for this.
You also can't access model-properties from a Global Function (not sure if that was your plan)

Maybe you are already satisfied with 2 volume states:

SF1 ON Volume MAX on
SF2 L01 Volume S2 on

By default you would have maximum volume, but when L01 is true it is controlled by S2
Maybe this already makes it possible to reach your goal
User avatar
CoyotteLg
Posts: 17
Joined: Sun Aug 05, 2012 12:20 pm
Country: Belgium
Location: Liège (Belgium)

Re: airspeed sensor data with Taranis Global variables

Post by CoyotteLg »

Hi Jim,

I've not found function to add two Global variables but...
One can use GV into mixes... And there's a way to read mix into a GV so...

Let's say we want to add GV1 ad GV2 into GV3
In a very small test, I used a channel (16 in my case) configured as

Code: Select all

CH16 :     MAX  RATIO (GV1)
CH16 : +-  MAX RATIO (GV2)
Therefore, CH16 is always the sum of GV1 and GV2

In special function I declared

Code: Select all

FS4 : ON    Adjust GV3   Source    Channel 16   [Checked]
Using that trick, VG3 is always the sum of GV1 and 2
There may be some limitations to maximum allowed values, but I haven't the time to test yet.

I hope this will help you.
Best regards,

Coyotte
The procrastination summit has been postponed...
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: airspeed sensor data with Taranis Global variables

Post by Kilrah »

I don't think using GVARs is even an appropriate solution for what he wants to do. Maybe if he described the original problem...

Post Reply

Return to “openTx”