Page 1 of 1

Auto Logging using increased RPM

Posted: Thu Jun 23, 2016 10:47 pm
by Dirty Deeds
Hi Guys,
I currently have Lua Script entered to auto-log using GPS speed. I'd like to change this & start auto-logging when the engine starts using over 500 RPM. I'm wondering how you delete the old script (do you just delete & rewrite on the app?) & can any tech experts let me know if the below script should work (using the RPM1 input)? Cheers!

function onTick()
if getTimerRpm() > 500 then
startLogging()
else
stopLogging()
end
end

Posted: Fri Jun 24, 2016 7:14 pm
by rdoherty
For your script you want to give the getTimerRpm() function the channel #. If you hooked your RPM into the first RPM input, then you would use getTimerRpm(0). Hope that helps!

Posted: Sat Jun 25, 2016 9:59 am
by Dirty Deeds
rdoherty wrote:For your script you want to give the getTimerRpm() function the channel #. If you hooked your RPM into the first RPM input, then you would use getTimerRpm(0). Hope that helps!
Thanks - I'll try this & post how I go & the new script I used - boats in bits atm so may take few days - thanks for the input👍

Posted: Wed Jun 29, 2016 7:30 am
by Dirty Deeds
Great - that worked, the script I used was:

function onTick()
if getTimerRpm(0) > 1000 then
startLogging()
else
stopLogging()
end
end

Thanks for the help!

Posted: Wed Jun 29, 2016 3:15 pm
by rdoherty
Awesome!