Non default Telemetry units using LUA
- IG-Modellbau
-
Topic Author
- Offline
- Moderator
-
- Posts: 3781
- Thank you received: 2809
TPL_KUNENA_MESSAGE_CREATED Non default Telemetry units using LUA
24 Mar 2019 09:22 - 24 Mar 2019 09:23
Hello I have a Problem,
setting telemetry unit's to non default are shown in "normal" telemetry windows correct, but not using LUA.
Example: M-Bar pressure is set to "atm"...
Normal telemetry window shows the correct unit...
But reading the value and the unit using LUA (08_sensors.lua) it shows the default unit (kPa)...
How can I get the changed, not default, unit?
Ingmar
setting telemetry unit's to non default are shown in "normal" telemetry windows correct, but not using LUA.
Example: M-Bar pressure is set to "atm"...
Attachment Screen000_2019-03-24.bmp not found
Normal telemetry window shows the correct unit...
Attachment Screen001_2019-03-24.bmp not found
But reading the value and the unit using LUA (08_sensors.lua) it shows the default unit (kPa)...
Attachment Screen002.bmp not found
How can I get the changed, not default, unit?
Ingmar
Last edit: 24 Mar 2019 09:23 by IG-Modellbau.
The following user(s) said Thank You: Thorn
Please Log in or Create an account to join the conversation.
- NicoS
-
- Offline
- Platinum Member
-
- Posts: 489
- Thank you received: 146
TPL_KUNENA_MESSAGE_REPLIED_NEW Non default Telemetry units using LUA
24 Mar 2019 10:42
I think the sensor sent the data in hPa.
If you want atm in Lua, you can recalculate hPa to atm. 1 kPa = 0.009869 atm.
I do the same with speed. The MGPS give speed in m/s. In LUA I want km/h. The LUA program recalculate m/s to km/h.
Nico
If you want atm in Lua, you can recalculate hPa to atm. 1 kPa = 0.009869 atm.
I do the same with speed. The MGPS give speed in m/s. In LUA I want km/h. The LUA program recalculate m/s to km/h.
Nico
Please Log in or Create an account to join the conversation.
- Thorn
-
- Offline
- Platinum Member
-
- Posts: 3464
- Thank you received: 1485
TPL_KUNENA_MESSAGE_REPLIED_NEW Non default Telemetry units using LUA
24 Mar 2019 13:16
Hello Nico,
please show me your solution with m / s or do you do that with a factor of 3.6?
Thorn
please show me your solution with m / s or do you do that with a factor of 3.6?
Thorn
!! Bitte alle meine Apps vom Sender Löschen!
Sorry, wegen meiner Rechtschreibung und Grammatik!!!
Lg Thorn
Sorry, wegen meiner Rechtschreibung und Grammatik!!!
Lg Thorn
Please Log in or Create an account to join the conversation.
- NicoS
-
- Offline
- Platinum Member
-
- Posts: 489
- Thank you received: 146
TPL_KUNENA_MESSAGE_REPLIED_NEW Non default Telemetry units using LUA
25 Mar 2019 11:20
You have a PN
Nico
Nico
The following user(s) said Thank You: Thorn
Please Log in or Create an account to join the conversation.
Time to create page: 0.343 seconds