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
Auto Logging using increased RPM
-
- Posts: 15
- Joined: Mon Jun 20, 2016 10:31 pm
- Location: Australia
- Contact:
Auto Logging using increased RPM
- Attachments
-
- Screen Shot 2016-06-24 at 8.46.34 am.png (206.84 KiB) Viewed 2024 times
Get in, Hold on , Shut up & pass me my Beer!
-
- Posts: 15
- Joined: Mon Jun 20, 2016 10:31 pm
- Location: Australia
- Contact:
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👍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!
Get in, Hold on , Shut up & pass me my Beer!
-
- Posts: 15
- Joined: Mon Jun 20, 2016 10:31 pm
- Location: Australia
- Contact: