double check script format
Posted: Thu Mar 30, 2017 2:36 am
two quick questions - does this look correct:
looking to start logging as soon as gps is showing +5mph and stop logging when engine RPM is showing less than 100 rpm (so engine off)
next question - I would like to rename my RPM channels - if i were to change that in setup, would the script need to read:
Or is the name in setup not related to the calls in the Lua script?
thanks for the help -
looking to start logging as soon as gps is showing +5mph and stop logging when engine RPM is showing less than 100 rpm (so engine off)
Code: Select all
function onTick()
if getGpsSpeed() > 5 then
startLogging()
else if
getTimerRpm(0) < 100 then
stopLogging()
end
end
Code: Select all
getTimerEngineRpm(0)
thanks for the help -