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
airspeed sensor data with Taranis Global variables
Re: airspeed sensor data with Taranis Global variables
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
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
Re: airspeed sensor data with Taranis Global variables
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
Therefore, CH16 is always the sum of GV1 and GV2
In special function I declared
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
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)
In special function I declared
Code: Select all
FS4 : ON Adjust GV3 Source Channel 16 [Checked]
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...
Re: airspeed sensor data with Taranis Global variables
I don't think using GVARs is even an appropriate solution for what he wants to do. Maybe if he described the original problem...