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.
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