Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Test virtual channels (EngineTemp and OilTemp)
maxEt = 300
maxOt = 300
etId = addChannel("EngineTemp", 10, 0, 0, maxEt)
otId = addChannel("OilTemp", 10, 0, 0, maxOt)
et = 0
ot = 0
setTickRate(50)
function onTick()
et=et+1
ot=ot+1
if et > maxEt then et=0 end
if ot > maxOt then ot=0 end
setChannel(etId, et)
setChannel(otId, ot)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment