RadioMaster TX16s: where do I activate LUA and telemetry scripts
RadioMaster TX16s: where do I activate LUA and telemetry scripts
Hi all,
just wanted to move my telemetry scripts from my Jumper T12 to my new TX16s. So I copied the scripts to the TELEMETRY and MIXES folders in SCRIPTS.
But (dump question): where is the screen to
1) acticate MIXES scripts
2) select a telemetry scripts for a telemetry screen?
In the OpenTX version for the jumper it was pretty easy to find. But with the OpenTX they delivered for the TX16s I just can't find the screens where to setup this stuff up.
Thanks!
just wanted to move my telemetry scripts from my Jumper T12 to my new TX16s. So I copied the scripts to the TELEMETRY and MIXES folders in SCRIPTS.
But (dump question): where is the screen to
1) acticate MIXES scripts
2) select a telemetry scripts for a telemetry screen?
In the OpenTX version for the jumper it was pretty easy to find. But with the OpenTX they delivered for the TX16s I just can't find the screens where to setup this stuff up.
Thanks!
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Ok, built a new firmware with LUA enabled.
But still missing the telemetry scripts
But still missing the telemetry scripts
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
There are no telemetry scripts on any of the color radios in OpenTX, widgets are used instead.
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Ok, thank you.
I used the telemetry scripts and their event-handling to create some interactive functionality. How can I do that now? Are widget script capable of processing button events?
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Not at this point, planned for 2.4.
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Mmh, next problem: print() is not working in companion? How to debug things then?
Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Why not? Should.wilopaan wrote:Mmh, next problem: print() is not working in companion? How to debug things then?
Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
No, but switch events.wilopaan wrote:Ok, thank you.
I used the telemetry scripts and their event-handling to create some interactive functionality. How can I do that now? Are widget script capable of processing button events?
I use two three state switches to simulate plus/minus and enter/exit.
Works as a charm, even with a repeat function when holding in plus or minus for a longer time.
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
There is no output from the scripts in the debugging console and after some seconds it crashes with "too much open files"
Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
What do you mean with switch events?lshems wrote: ↑Sat May 23, 2020 9:31 pmNo, but switch events.wilopaan wrote:Ok, thank you.
I used the telemetry scripts and their event-handling to create some interactive functionality. How can I do that now? Are widget script capable of processing button events?
I use two three state switches to simulate plus/minus and enter/exit.
Works as a charm, even with a repeat function when holding in plus or minus for a longer time.
Do you have to poll the switches, that is selft-generate kind-of event?
Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Then you do probably something wrong. Don't write to the debug screen every cycle a lot of data. It will crash indeed.wilopaan wrote:There is no output from the scripts in the debugging console and after some seconds it crashes with "too much open files"
Re: RE: Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Yep.wilopaan wrote:What do you mean with switch events?lshems wrote: ↑Sat May 23, 2020 9:31 pmNo, but switch events.wilopaan wrote: Ok, thank you.
I used the telemetry scripts and their event-handling to create some interactive functionality. How can I do that now? Are widget script capable of processing button events?
I use two three state switches to simulate plus/minus and enter/exit.
Works as a charm, even with a repeat function when holding in plus or minus for a longer time.
Do you have to poll the switches, that is selft-generate kind-of event?
-
- Posts: 750
- Joined: Tue Dec 27, 2011 11:22 pm
- Country: United States
- Location: Carson City, Nv
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
There are 'switches' which are 2 or 3 position toggle and there are navigation buttons/rotaries that generate EVENTS.
Events are auto updated by the Operating System, Switches must be polled to get current status.
Events are auto updated by the Operating System, Switches must be polled to get current status.
Dean
OldDmbThms: 1. Takeoff, 2. Crash, 3. Repair, GOTO 1
OldDmbThms: 1. Takeoff, 2. Crash, 3. Repair, GOTO 1
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Ok, the frequency the tools-scripts are called seems to be much higher than telemetry scripts. So the debug sometimes yields a kind of overflow.
The good thing is, that porting telemetrie scripts to tools scripts is easy (well, no lcd.drawScreenTitle() ?). One drawback is, that running a tools script occupies the full screen.
Are there any other obstacles using a tools script for kind of userinterface to some special functionality (sending special channel values to some special hw connected to the receiver)? Do tools scripts infer with the normal function of the radio, e.g. causing some delay?
The good thing is, that porting telemetrie scripts to tools scripts is easy (well, no lcd.drawScreenTitle() ?). One drawback is, that running a tools script occupies the full screen.
Are there any other obstacles using a tools script for kind of userinterface to some special functionality (sending special channel values to some special hw connected to the receiver)? Do tools scripts infer with the normal function of the radio, e.g. causing some delay?
Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
You can generate events yourself, especially if you have to call the run script from the background.rdeanchurch wrote:There are 'switches' which are 2 or 3 position toggle and there are navigation buttons/rotaries that generate EVENTS.
Events are auto updated by the Operating System, Switches must be polled to get current status.
Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Yes, NO MIXER SCRIPTS OR FUNCTION SCRIPTS OR WIDGETS are running at the same time.wilopaan wrote:Ok, the frequency the tools-scripts are called seems to be much higher than telemetry scripts. So the debug sometimes yields a kind of overflow.
The good thing is, that porting telemetrie scripts to tools scripts is easy (well, no lcd.drawScreenTitle() ?). One drawback is, that running a tools script occupies the full screen.
Are there any other obstacles using a tools script for kind of userinterface to some special functionality (sending special channel values to some special hw connected to the receiver)? Do tools scripts infer with the normal function of the radio, e.g. causing some delay?
For many not feasible during flight.
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Does that mean, that the e.g. mixer scripts are generally disabled when the tools script runs. Or are they called round robin?
Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Disabled.wilopaan wrote:Does that mean, that the e.g. mixer scripts are generally disabled when the tools script runs. Or are they called round robin?
'tool' scripts run exclusive.
Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Ok, thats no good news.
Then I have to use some switches or pots ... until the widgets support events from the ui-buttons
Re: RE: Re: RE: Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
Make sure to do that in the function that's called when the display is active for that widget, to prevent unwanted change of settings or stuff.wilopaan wrote:Ok, thats no good news.
Then I have to use some switches or pots ... until the widgets support events from the ui-buttons
Re: RadioMaster TX16s: where do I activate LUA and telemetry scripts
I am using the trim buttons t6 and t5 for now.
A little bit annoying is, da one has to disable them in flightmodes and define inputs for them.
A little bit annoying is, da one has to disable them in flightmodes and define inputs for them.