Contact me on [email protected].
I Cant promise anything before we have had a chat, contact details to be shared by mail.
Search found 63 matches
- Thu Apr 18, 2024 9:59 am
- Forum: openTx
- Topic: Migrate a Jeti LUA script to OpenTX Taranis X9D (paid)
- Replies: 1
- Views: 132
- Fri Aug 13, 2021 5:15 pm
- Forum: openTx
- Topic: relationship between .otx radio file and .bin files in MODELS folder?
- Replies: 2
- Views: 1605
- Fri Aug 13, 2021 5:12 pm
- Forum: openTx
- Topic: relationship between .otx radio file and .bin files in MODELS folder?
- Replies: 2
- Views: 1605
Re: relationship between .otx radio file and .bin files in MODELS folder?
The otx file is a zip file containing the radio settings, models and models txt.
Just rename it to .zip and you can unpack it.
The bin files are the individual models.
Have fun and just fly! Just Google it.
Just rename it to .zip and you can unpack it.
The bin files are the individual models.
Have fun and just fly! Just Google it.
- Fri Jun 11, 2021 10:33 pm
- Forum: erskyTx (was ersky9x)
- Topic: convert Open-Tx models to erskyTx
- Replies: 1
- Views: 3642
Re: convert Open-Tx models to erskyTx
No, you can't convert them.
It would be like fitting feet in a glove. Similarities, but no go.
Have fun and just fly! Just Google it.
It would be like fitting feet in a glove. Similarities, but no go.
Have fun and just fly! Just Google it.
- Sun Oct 11, 2020 9:15 am
- Forum: openTx
- Topic: Yaw and Roll mixing with knob and switch
- Replies: 1
- Views: 1779
Re: RE: Yaw and Roll mixing with knob and switch
Hello everyone ... For a quad I would like to create a mixing between yaw and roll whose roll weight varies through a knob (mix with 10%, 20 30 ... 100% of roll) and this function can be activated / deactivated ile through a physical switch I would also like to be able to set that if I move the sti...
- Fri Oct 09, 2020 3:27 pm
- Forum: openTx
- Topic: Lua help, trying to learn, so many questions
- Replies: 3
- Views: 4450
Re: Lua help, trying to learn, so many questions
Try and read the lua manual on variable scoping first.
Then, widgets are so not easy to understand, bad point to start.
But, check my blog on rcgroups, it answers a lot f these questions.
Guido
Then, widgets are so not easy to understand, bad point to start.
But, check my blog on rcgroups, it answers a lot f these questions.
Guido
- Sat Jun 06, 2020 7:17 am
- Forum: openTx
- Topic: lcd.drawText() and color
- Replies: 3
- Views: 2982
Re: RE: Re: lcd.drawText() and color
Mmm. Didn't notice that. I need to check that out.wilopaan wrote:Ok, thank you.
In some scripts I saw lcd.getText() with a color attribute added, e.g. SMLSIZE + GREY. I think the battcheck widget had that. This isn't documented and I was wondering if one could use that.
- Fri Jun 05, 2020 6:44 pm
- Forum: openTx
- Topic: Global variables: share data between mix-script and widget
- Replies: 11
- Views: 6485
Re: Global variables: share data between mix-script and widget
You have to activate the telemetry simuator in the sim as well. little tickbox in the left to corner of the telemetry sensor simulator screen :). testscript (run as telemetry, discover sensors): return { background = function() setTelemetryValue(0Xabcd,0,101, getValue('thr'), 0, 0, "wm01")...
- Fri Jun 05, 2020 2:51 pm
- Forum: openTx
- Topic: lcd.drawText() and color
- Replies: 3
- Views: 2982
Re: lcd.drawText() and color
Opentx widgets use a colour palette for different elements. So you can set a colour for text, background, ... It will be the colour used for ALL txt elements. If you want to change it for only YOUR widget, read the current colour, store it, set the colour to your choice, write the text and revert th...
- Wed Jun 03, 2020 10:45 pm
- Forum: openTx
- Topic: Global variables: share data between mix-script and widget
- Replies: 11
- Views: 6485
Re: RE: Re: Global variables: share data between mix-script and widget
Well, I checked your example. Writing / reading gvars works fine, but clutters the gvars oviously. setTelemetryValue() / getValue() dows not work for me, since getValue() allways returns 0 for the name used in setTelemetryValue(): the sensor is created, I can see it in the telemetry menu, but getVa...
- Wed Jun 03, 2020 5:00 pm
- Forum: openTx
- Topic: Global variables: share data between mix-script and widget
- Replies: 11
- Views: 6485
Re: Global variables: share data between mix-script and widget
The global variables you referred to are the model gvars.
- Wed Jun 03, 2020 5:00 pm
- Forum: openTx
- Topic: Global variables: share data between mix-script and widget
- Replies: 11
- Views: 6485
Re: Global variables: share data between mix-script and widget
Ok, check this script:
https://www.justfly.solutions/index.php ... ogchannels
It writes a channel value to a virtual telemetry channel.
You can just use getValue (sensorname) to read it in the other script.
Don't forget to discover while the sending is active.
https://www.justfly.solutions/index.php ... ogchannels
It writes a channel value to a virtual telemetry channel.
You can just use getValue (sensorname) to read it in the other script.
Don't forget to discover while the sending is active.
- Wed Jun 03, 2020 4:49 pm
- Forum: openTx
- Topic: lcd.drawScreenTitle() and INVERS
- Replies: 1
- Views: 2814
Re: RE: lcd.drawScreenTitle() and INVERS
Make your own function for it. I never understood the reason to have an API function for it.wilopaan wrote:Hi all,
is there a possiblility to display the page/pages field INVERS?
Thanks!
- Wed Jun 03, 2020 3:09 pm
- Forum: openTx
- Topic: Global variables: share data between mix-script and widget
- Replies: 11
- Views: 6485
Re: RE: Re: Global variables: share data between mix-script and widget
Well, that is really bad! writing / reading a file seems to be a quite of overhead. Are you you sure, that there is not other pssibility? (in the poist above I meant global-lua-script-variables, not global vars in the sense of OpenTx). The widget i wrote (ab)uses some trims to emulate buttons and p...
- Wed Jun 03, 2020 1:33 pm
- Forum: openTx
- Topic: Mixer scripts in companion? Where?
- Replies: 2
- Views: 2367
Re: Mixer scripts in companion? Where?
Use the standalone simulator on an otx file. Changes are persistent.
- Wed Jun 03, 2020 1:14 pm
- Forum: openTx
- Topic: Global variables: share data between mix-script and widget
- Replies: 11
- Views: 6485
Re: RE: Global variables: share data between mix-script and widget
I used to use global variables to exchange data between telemetry scripts and mixer script. Now I want to do the same with a widget and a mix-script. Looks like the global var of the widget is not seem from the mix-script. How can one achieve this? Thanks! You can't. Use a table to store the stuff ...
- Sun May 24, 2020 10:04 am
- Forum: openTx
- Topic: RadioMaster TX16s: where do I activate LUA and telemetry scripts
- Replies: 22
- Views: 14729
Re: RE: Re: RE: 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? Disabled. 'tool' scripts run exclusive. Ok, thats no good news. Then I have to use some switches or pots ... until the widgets support events from the ui-buttons Make sure ...
- Sun May 24, 2020 9:24 am
- Forum: openTx
- Topic: RadioMaster TX16s: where do I activate LUA and telemetry scripts
- Replies: 22
- Views: 14729
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.
- Sun May 24, 2020 8:00 am
- Forum: openTx
- Topic: RadioMaster TX16s: where do I activate LUA and telemetry scripts
- Replies: 22
- Views: 14729
Re: RE: 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 scri...
- Sun May 24, 2020 7:59 am
- Forum: openTx
- Topic: RadioMaster TX16s: where do I activate LUA and telemetry scripts
- Replies: 22
- Views: 14729
Re: RE: 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. You can generate events yourself, especially if you have to call the run script from ...
- Sun May 24, 2020 1:45 am
- Forum: openTx
- Topic: RadioMaster TX16s: where do I activate LUA and telemetry scripts
- Replies: 22
- Views: 14729
Re: RE: Re: RE: 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? No, but switch events. I use two three state switches to simulate plus/minus and enter/exit. Works as a charm,...
- Sun May 24, 2020 1:45 am
- Forum: openTx
- Topic: RadioMaster TX16s: where do I activate LUA and telemetry scripts
- Replies: 22
- Views: 14729
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"
- Sat May 23, 2020 9:31 pm
- Forum: openTx
- Topic: RadioMaster TX16s: where do I activate LUA and telemetry scripts
- Replies: 22
- Views: 14729
Re: RE: 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. 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? No, but switch ...
- Sat May 23, 2020 9:29 pm
- Forum: openTx
- Topic: RadioMaster TX16s: where do I activate LUA and telemetry scripts
- Replies: 22
- Views: 14729
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?
- Sat May 23, 2020 8:04 am
- Forum: openTx
- Topic: RadioMaster TX16s: where do I activate LUA and telemetry scripts
- Replies: 22
- Views: 14729
- Tue Apr 28, 2020 12:25 am
- Forum: openTx
- Topic: How to make a PID-Controller: control the throttle (ESC) for a given RPM (governor)
- Replies: 18
- Views: 11988
- Fri Apr 24, 2020 1:12 pm
- Forum: openTx
- Topic: How to make a PID-Controller: control the throttle (ESC) for a given RPM (governor)
- Replies: 18
- Views: 11988
Re: RE: Re: How to make a PID-Controller: control the throttle (ESC) for a given RPM (governor)
Don't get your point?wilopaan wrote:Next question: using the companion, how to simulate 2 or more RPM sensors.
When I start the simulation, there is only one RPM Sensor, but I need of course a second. How can I add a second one?
Thanks.
- Tue Apr 21, 2020 8:16 pm
- Forum: openTx
- Topic: How to make a PID-Controller: control the throttle (ESC) for a given RPM (governor)
- Replies: 18
- Views: 11988
Re: How to make a PID-Controller: control the throttle (ESC) for a given RPM (governor)
Ah yes! So the value of an input/mixer for t(n) is always based on another value for t(n-1)? Well, that is tricky to say. But to not even bother about that, I just put every mixer Inthe order if calculation. So first the current error. That's simple. But then, I need the current error minus the las...
- Tue Apr 21, 2020 6:58 am
- Forum: openTx
- Topic: How to make a PID-Controller: control the throttle (ESC) for a given RPM (governor)
- Replies: 18
- Views: 11988
- Mon Apr 20, 2020 11:22 pm
- Forum: openTx
- Topic: How to make a PID-Controller: control the throttle (ESC) for a given RPM (governor)
- Replies: 18
- Views: 11988
Re: How to make a PID-Controller: control the throttle (ESC) for a given RPM (governor)
Oh, very cool! Would be glad to hear more ... this week I'am busy at bussiness. Thanks! How about this :) screenshot_x9d+_20-04-21_01-09-23.png used a throttle as output parameter, with weight, offset (simulated load) and delay on this throttle as resulting RPM to match the set RPM. Don't get any e...