[BUG] Lua serial commands don't work with RC Track?
Posted: Fri Apr 24, 2020 1:33 pm
I tried this script, on all ports, 0 through 6. (7 is not valid)
nothing happens it just sits there printing "read value: " with a blank. It's not a nil because the IF statement is true and the "read value:" prints. Except nothing prints. I tried all the ports. It's like the serial commands don't work with the RC Track 2.
script from: https://wiki.autosportlabs.com/RaceCapt ... erial_data
Code: Select all
--initialize Aux serial port to 115200, 8, N, 1
initSer(4, 115200, 8, 0, 1)
function onTick()
--read a line from the aux serial port with a 100ms timeout
value = readSer(4, 100)
if value ~= nil then
println('read value: ' ..value)
end
end
script from: https://wiki.autosportlabs.com/RaceCapt ... erial_data