EdgeTX / edgetx

EdgeTX is the cutting edge open source firmware for your R/C radio
https://edgetx.org
GNU General Public License v2.0
1.59k stars 338 forks source link

Is there a wrong Lua compiler in Companions Simulator ? #5598

Closed arrenbrecht closed 2 weeks ago

arrenbrecht commented 2 weeks ago

Is there an existing issue for this problem?

What part of EdgeTX is the focus of this bug?

Companion

Current Behavior

Telemetry Lua scripts with float variables are aborted in the Companion Simulator with the following error message mailformed number near '.1'

I suspect that an LUA compiler is included that can only process integer variables.

LUA scripts on the transmitters run flawlessly.

Expected Behavior

Lua scripts with float variables should also be able to be started in the Companion Simulator.

Steps To Reproduce

start any LUA script with float variables

Version

2.10.4

Transmitter

RadioMaster Pocket, RadioMaster TX16S / TX16SMK2, RadioMaster Zorro

Operating System (OS)

Linux

OS Version

Linux Mint

Anything else?

No response

pagrey commented 2 weeks ago

It might help if you post the code that is giving you problems. All of my scripts run fine on 2.10.4 in the simulator.

wimalopaan commented 2 weeks ago

You need to set the env variable LANG=C

arrenbrecht commented 2 weeks ago

Where and how do I have to set the variable?

wimalopaan commented 2 weeks ago

My knowledge is limited to linux: in your shell: $ export LANG=C Afterwards start your simu/cpn from this shell.

arrenbrecht commented 2 weeks ago

Thank you, it works