Search found 155 matches

by wilopaan
Thu Jul 23, 2020 5:47 pm
Forum: openTx
Topic: SBus is not SBus?
Replies: 8
Views: 4410

Re: SBus is not SBus?

I started with IBus to implement a multi-switch for the receiver: in one channel a status code is encoded, and on the ibus of the rx a µC decodes that to enable some mosfet-switches. This is of interest to the ship model builders. With Ibus I have to transform decimal values v of 0...1023 to (2*v) -...
by wilopaan
Thu Jul 23, 2020 5:07 pm
Forum: openTx
Topic: SBus is not SBus?
Replies: 8
Views: 4410

Re: SBus is not SBus?

Can you give me a clue how to implement a lua-function to set a bitValue directly?
by wilopaan
Thu Jul 23, 2020 4:02 pm
Forum: openTx
Topic: SBus is not SBus?
Replies: 8
Views: 4410

Re: SBus is not SBus?

My problem is, thatI want to transport a 10-Bit value [0,1023] exactly to the receiver. The SBus range on the FrSky receiver is [172,1810] So i calculated: v = (bitValue * 2048) / 1638 - 1024 but that gives me to much rounding errors. Using FlySky and IBUS-Output it works as: v = (bitValue * 2) - 10...
by wilopaan
Wed Jul 22, 2020 2:48 pm
Forum: openTx
Topic: SBus is not SBus?
Replies: 8
Views: 4410

SBus is not SBus?

If I use FlySky e.g. FS-iA4B RX with Sbus-Output enabled, I get different min/max values if I do the same with e.g. a FrSky R8X receiver.

Where do this difference come from?

How to fix that - if possible?
by wilopaan
Fri Jul 03, 2020 7:27 am
Forum: openTx
Topic: Find an input by its user supplied name?
Replies: 0
Views: 1828

Find an input by its user supplied name?

Hi all,

I like to find an input by a user supplied name, then get its id by getFieldInfo() and use it in a widget script, e.g. to fill the options.

I tries that in compainion 2.3.9, but neither getFieldInfo("name") or a search over all inputs via model.getInput() works.

Any ideas?
by wilopaan
Fri Jul 03, 2020 4:03 am
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

I saw a new branch called "tx16s-sbus-in". Looks like the right thing. Is it already worth trying?
by wilopaan
Tue Jun 30, 2020 7:37 pm
Forum: openTx
Topic: FrSky Sport Protocol and LUA sportTemetryPush()
Replies: 0
Views: 1803

FrSky Sport Protocol and LUA sportTemetryPush()

I have already a functional implemential for the sport-protocol, but only for the polling of sensors.

Does anybody have a description how the push-messages are implemented in the sport protocol? So, what does the RX send a sport package, if openty issues such a sportTelemetyPush() function.

Thanks.
by wilopaan
Tue Jun 30, 2020 4:15 pm
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

The LUA option works: a mixer script can pickup the values from the serial interface. So far, so good.

Are there any activities ongoing towards the "SBUS-Input" option? (see also aboce post).

Thanks!
by wilopaan
Sat Jun 27, 2020 5:03 am
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

Yes! Mike Ok, thanks Mike. Looking at the other options. I checked the source code for the auxSerialInit(). and aux2SerialInit(). Here I see the menu options: "telemetry mirror", "telemetr input", and "LUA". But I don't see the "SBUS-Input" option, that is pr...
by wilopaan
Fri Jun 26, 2020 7:01 pm
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

The multi-protocol module sends the trainer data using the telemetry signal. When using the "MULTI_TELEMETRY" build option then the data sent includes a header indicating what the following data represents. One option for the type of data is trainer data. Mike You mean Type 0x0d ? From mu...
by wilopaan
Fri Jun 26, 2020 5:57 pm
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

Kilrah wrote: Fri Jun 26, 2020 5:30 pm SBUS stream on pin2 is not supported on the color LCD radios, unlike the B/W ones this is not an uart pin.
But if it is not supported, how does then multi-trainer work? The module has to feed the data-stream into the TX16S somehow.
by wilopaan
Fri Jun 26, 2020 5:03 pm
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

Multi-trainer is where you use both an internal and an external multi-protocol module. Set the protocol on the external module to be one of the "receive" protocols, e.g. FrSky_Rx. Bind this to another Tx, then the control data from the other Rx will be the trainer input data for the T16. ...
by wilopaan
Fri Jun 26, 2020 1:05 pm
Forum: openTx
Topic: Raidiomaster TX16s TTL serial port
Replies: 0
Views: 1775

Raidiomaster TX16s TTL serial port

For the TTL serial port I cant select "telem mirror". This seems to work, as it shows the payload (without header) of the telemetry data send from the MPM, I think. So in case of FlySky AFHDS2A ist starts with 0x06, ... The other option for the setting is "telemetry in". Does tha...
by wilopaan
Fri Jun 26, 2020 9:37 am
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

If I understand you correctly, there is no SBUS input for the TTL serials? A bit strange, because I can select this option. What do you mean with multi-trainer? Feed SBUS on the module tray pin 2 (usually used for telemetry)? Do you have any information to LUA-serialRead() ? (see other question I po...
by wilopaan
Fri Jun 26, 2020 5:47 am
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

Just want to popup this quetion and add another option: bluetooth. Inside the TX16S there is a place to attach a BT module. Has anyone information an this? Which module type? Can this be trainer input? How to use in general?
by wilopaan
Fri Jun 26, 2020 4:13 am
Forum: openTx
Topic: LUA serialRead()
Replies: 0
Views: 1643

LUA serialRead()

In the release notes of 2.3.8. I read that there is a nes function: serialRead().

I wonder, how I can configure the BaudRate and the interface to use.

Is there any docu on this?
by wilopaan
Sat Jun 06, 2020 4:09 am
Forum: openTx
Topic: lcd.drawText() and color
Replies: 3
Views: 2979

Re: lcd.drawText() and color

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.
by wilopaan
Fri Jun 05, 2020 7:07 pm
Forum: openTx
Topic: Global variables: share data between mix-script and widget
Replies: 11
Views: 6477

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"...
by wilopaan
Fri Jun 05, 2020 5:31 am
Forum: openTx
Topic: lcd.drawText() and color
Replies: 3
Views: 2979

lcd.drawText() and color

Is it possible to set the text-forground color with lcd.drawText()?
by wilopaan
Thu Jun 04, 2020 4:23 am
Forum: openTx
Topic: Global variables: share data between mix-script and widget
Replies: 11
Views: 6477

Re: Global variables: share data between mix-script and widget

The writing part (widget): local function background() local b = setTelemetryValue(0Xabcd,0,101, 42, 0, 0, "wm01"); if (b) then print("add ch1"); else print("set ch1"); end end The written value is visible in the telemtry screen. The reading part (mix script): local fun...
by wilopaan
Wed Jun 03, 2020 8:09 pm
Forum: openTx
Topic: Global variables: share data between mix-script and widget
Replies: 11
Views: 6477

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 getVal...
by wilopaan
Wed Jun 03, 2020 4:55 pm
Forum: openTx
Topic: Global variables: share data between mix-script and widget
Replies: 11
Views: 6477

Re: Global variables: share data between mix-script and widget

Well, I can get the value of a sensor with getValue(). How Do I set the value?

Isn't it better to use model.setGlobalVariable() / model.getGlobalVariable() ?
by wilopaan
Wed Jun 03, 2020 2:34 pm
Forum: openTx
Topic: Mixer scripts in companion? Where?
Replies: 2
Views: 2364

Re: Mixer scripts in companion? Where?

Thanks
by wilopaan
Wed Jun 03, 2020 2:33 pm
Forum: openTx
Topic: Global variables: share data between mix-script and widget
Replies: 11
Views: 6477

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 pr...
by wilopaan
Wed Jun 03, 2020 11:50 am
Forum: openTx
Topic: Global variables: share data between mix-script and widget
Replies: 11
Views: 6477

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!
by wilopaan
Wed Jun 03, 2020 10:51 am
Forum: openTx
Topic: Mixer scripts in companion? Where?
Replies: 2
Views: 2364

Mixer scripts in companion? Where?

Simple question: where can I activate mixer scripts in companion. I used "lua" in the profile, but I am missing the tab for the mixer scripts.

Any help?
Thanks!
by wilopaan
Thu May 28, 2020 7:11 pm
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

MikeB wrote: Thu May 28, 2020 6:51 pm Or nobody reading this knows!
I don't have a T16S so I don't know (and I use erskyTx anyway).

Mike
My hope was to reach some of the devs here, because in the past I got very valuable and useful information here.
by wilopaan
Thu May 28, 2020 6:26 pm
Forum: openTx
Topic: Help with Trainer-Input (Radiomaster TX16s, but not only)
Replies: 28
Views: 17272

Re: Help with Trainer-Input (Radiomaster TX16s, but not only)

Either the question is too simple or just dumb, or it requires a lot of explanation ...

Nobody to give me some clues?
by wilopaan
Tue May 26, 2020 7:01 am
Forum: openTx
Topic: RadioMaster TX16s serial ports
Replies: 2
Views: 4310

Re: RadioMaster TX16s serial ports

Isn't there anyone to answer these question? In general it would be nice to know, where I can provide serial (SBUS) trainer input and where to get telemetry output. Maybe there is a summary, where I can get this kind of information? Would be very happy, if someone could guide me ... (perhaps also to...
by wilopaan
Mon May 25, 2020 7:06 pm
Forum: openTx
Topic: RadioMaster TX16s serial ports
Replies: 2
Views: 4310

Re: RadioMaster TX16s serial ports

In the hal.h I found information that these ports are AUX and AUX2. Looks like they were intended to be used with BT and GPS.

Can anyone shed a little bit more light on them?

Go to advanced search