LUA P3&P4 inverted in mode 4 ?
- borisff
- Offline Autor
- Senior Mitglied
- Beiträge: 61
- Dank erhalten: 3
DC-24 simulator
1) set System/Configuration/stick Mode 4
2) Create a model
3) Load the LUA App P3P4.lua
Moving stick P3, LUA apps shows value of P4.
Are Lua P3&P4 inverted in mode 4 ?
It's same with a DC-16 in mode 4.
local APPNAME = "P3P4"
local function loop()
local p1, p2, p3, p4 = system.getInputs("P1", "P2", "P3", "P4")
print("p1="..p1)
print("p2="..p2)
print("p3="..p3)
print("p4="..p4)
end
local function init(code)
end
return {loop=loop, author="Test", version="1.0", name=APPNAME}
1) set System/Configuration/stick Mode 4
2) Create a model
3) Load the LUA App P3P4.lua
Moving stick P3, LUA apps shows value of P4.
Are Lua P3&P4 inverted in mode 4 ?
It's same with a DC-16 in mode 4.
local APPNAME = "P3P4"
local function loop()
local p1, p2, p3, p4 = system.getInputs("P1", "P2", "P3", "P4")
print("p1="..p1)
print("p2="..p2)
print("p3="..p3)
print("p4="..p4)
end
local function init(code)
end
return {loop=loop, author="Test", version="1.0", name=APPNAME}
von borisff
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- TeroS
- Offline
- Platinum Mitglied
- RC-Thoughts
- Beiträge: 527
- Dank erhalten: 370
You're right. It's not mode-specific, visible in Mode 2 also.
Looks like Lua reads inputs wrong.
Looks like Lua reads inputs wrong.
von TeroS
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
Moderatoren: Thorn, IG-Modellbau
Ladezeit der Seite: 0.991 Sekunden