Adjust Spirit parameters on opentx TX

You can write here about anything you want in regard to R/C.
Post Reply
swash23
Posts: 40
Joined: Fri 01. Nov 2019 13:32:19
Location: Munich, Germany

Hi,

Would like to share a lua telemetry script which I use to adjust Spirit (in my case Spirit GT) tuning values with a opentx radio (in my case Taranis X9D plus).
I will upload the script and the sound files later.
The tuning parameters are persistent using global variables.
Only use the script if you know what u do ;-)

Have fun
Attachments
IMG_20211019_080601.jpg
IMG_20211019_080611.jpg
IMG_20211019_080625.jpg
Last edited by swash23 on Tue 19. Oct 2021 7:24:37, edited 1 time in total.
swash23
Posts: 40
Joined: Fri 01. Nov 2019 13:32:19
Location: Munich, Germany

files attached.
sounds.zip should be extracted to SOUNDS/en
The script is placed to SCRIPTS/TELEMETRY
Attachments
spitun.zip
(2.64 KiB) Downloaded 267 times
sounds.zip
(437.87 KiB) Downloaded 274 times
Last edited by swash23 on Sat 23. Oct 2021 19:19:39, edited 1 time in total.
jasc
Posts: 61
Joined: Fri 20. Aug 2021 6:12:26

Sounds interesting (not the sounds, the functionality :-) )
Can you share some more info what you mean by "persistent using global variable" and how its set up.
I'm familiar with GVARs, so I just need to know the rough overview.
swash23
Posts: 40
Joined: Fri 01. Nov 2019 13:32:19
Location: Munich, Germany

the script uses GVAR1 to GVAR9. You should not use these variables somewhere else on the radio.
You have to define a telemetry screen to use the script.
You assign the spirit functions to a free channel (in spirit settings)
and you define an opentx mixer for that channel (source:max, weight; GV9 (for example))
in the outputs screen of opentx you can adjust the alignment of the script values with the spirit parameter values (if needed)
swash23
Posts: 40
Joined: Fri 01. Nov 2019 13:32:19
Location: Munich, Germany

script has been extended and uploaded.
It is now aware of different banks or flight modes, so that each flight mode can have different values (for example head gain is mostly lower on higher rpm). The radio expects GVar 0-9 on Flight Mode 0,2 and 4
also added an option to disable sound because the sound output can be annoying if you switch fast through the menues.
jasc
Posts: 61
Joined: Fri 20. Aug 2021 6:12:26

swash23 wrote:script has been extended and uploaded.
It is now aware of different banks or flight modes, so that each flight mode can have different values (for example head gain is mostly lower on higher rpm). The radio expects GVar 0-9 on Flight Mode 0,2 and 4
also added an option to disable sound because the sound output can be annoying if you switch fast through the menues.


Sounds good. I redownloaded and hope to test it soon. Lot of work currently :-(
jasc
Posts: 61
Joined: Fri 20. Aug 2021 6:12:26

Hi

i placed your script in Scripts/Telemetry but I can't activate it (added telemetry screen, full screen, select widget). Spirit is not connected
TX16s
EdgeTX2.5
swash23
Posts: 40
Joined: Fri 01. Nov 2019 13:32:19
Location: Munich, Germany

Hi,

the script is only for opentx / Taranis X9D plus (maybe similar radio will work also). The TX16s uses widgets which
are not used by this script. Opentx radios which use telemetry scripts should work.

Regards
Post Reply