Page 2 of 5
Re: [HowTo] OpenTX programming for Spirit control units
Posted: Sat 24. Nov 2018 16:59:05
by LapinFou
Carthago wrote:Hello Seb,
meanwhile I tested a lot with the help of your file. It is great, that you as one of the OpenTx experts tries to help here and it would be a good idea to make your files including the explanation text the official examples in spirit manual.
To reach the +-100% in Spirit programming interface I had to change the values suitable to my radio a little bit and I use S1 als a gas limiter in connection with your safety switch.
My modified Heli seems to fly correct after changing from my old FBL to Spirit pro and GeoLink and from Graupner to FrSky, but the weather here is too bad at the moment for further flying - about 0 degrees, wet and windy.
So I will use the time and learn more about OpenTx.
A question to your explanation of calculating RPM values: why multiplying with 200 and -100 and so on? Can't see the reason, even though the results are correct, of course.
And another question: if you have a look in the heli-mixer-page in companion in the officially given example here there you can find three times the same value (I4:SMER, (=in English Rud)).
What is it for - I think it does nothing really.
Thank you and best regards,
Toni
Hi Toni,
Glad this tutorial helped you.

Here are the answers to your questions:
1- The expected range value for the RPM are from 0% to 100%.
However OpenTX goes from -100% to 100%.
So,
OpenTX → Spirit (PWM pulse in µs)
-100% → 0% (about 1100µs)
0% → 50% (about 1520µs)
+100% → +100% (about 1940µs)
Thus, to convert value you must use a
Linear function.
This gives, the "
Value * 200% - 100%"

2- Concerning the "heli" setup menu under Companion/OpenTX, this is a dedicated menu for CCPM mixing.
This shall be use
only for older heli with Bell Flybar which requires a "
Cyclic-
Collective-
Pitch-
Mixing".
So, this menu must be ignored for FBL heli.
Seb
Re: [HowTo] OpenTX programming for Spirit control units
Posted: Sat 24. Nov 2018 17:30:55
by Carthago
Hi Seb,
many thanks for your explanations!
Now I understand the calculation; I didn't think about the -100 to +100 range, but now its clear to me.
Heli setup menu: I thought so, but sometimes it is better to ask as a precaution.
Toni
Re: [HowTo] OpenTX programming for Spirit control units
Posted: Sat 24. Nov 2018 17:58:49
by LapinFou
You're welcome.

Re: [HowTo] OpenTX programming for Spirit control units
Posted: Tue 12. Mar 2019 3:30:06
by chadakennedy86
you have some good work here...I could use some help setting up a X10 with geolink and hobbywing
Re: [HowTo] OpenTX programming for Spirit control units
Posted: Thu 24. Sep 2020 18:06:24
by stefaanbolle
I recently bought a TX16S.
Super radio btw.
My heli has a Spirit Pro with a SRXL2 4651T receiver. In OpenTX I get telemetry data, but I am not able to have the Spirit programming Lua to function. On my DX9 it is working.
I installed the Lua scripts in my scripts TOOLS folder. Am I overlooking something?
Re: [HowTo] OpenTX programming for Spirit control units
Posted: Sat 26. Sep 2020 15:27:37
by LapinFou
It should not be install in the TOOL menu.
It must be install at the root of the SD card, then launch from the SD card browser.
Re: [HowTo] OpenTX programming for Spirit control units
Posted: Sat 26. Sep 2020 18:30:40
by stefaanbolle
LapinFou wrote:It should not be install in the TOOL menu.
It must be install at the root of the SD card, then launch from the SD card browser.
Thanks!
Re: [HowTo] OpenTX programming for Spirit control units
Posted: Sat 26. Sep 2020 19:20:47
by LapinFou
stefaanbolle wrote:LapinFou wrote:It should not be install in the TOOL menu.
It must be install at the root of the SD card, then launch from the SD card browser.
Thanks!
Here is how it does work on my X9D+ (menu are in French

)

Re: [HowTo] OpenTX programming for Spirit control units
Posted: Thu 01. Oct 2020 17:44:22
by stefaanbolle
Still not working, having the same setup except receiver is SRLX2 4651T.
Also the deiscovered telemetry sensors seem strange. No flightpack voltage, strange temperatures and current readings while this is not supported in the HW Platinum 60A v4.
See screenshots of detected Telemetry sensors.
Something is wrong here. Anyone a clue?
Re: [HowTo] OpenTX programming for Spirit control units
Posted: Thu 01. Oct 2020 18:30:33
by LapinFou
Oh !
I didn't notice that you are using a Spektrum RX....
In this case, I can't help you. I'm only using FrSky receiver.
To be honest I don't think it can work, OpenTX LUA script are only for FrSky Receiver.
Spektrum telemetry is not working the same way.