RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
Auto Logging using increased RPM
Author Message
Reply with quote
Post Auto Logging using increased RPM 
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


_________________
Get in, Hold on , Shut up & pass me my Beer!
View user's profile Send private message Visit poster's website AIM Address
Reply with quote
Post  
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!


_________________
Ryan Doherty
Autosports Labs
View user's profile Send private message
Reply with quote
Post  
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👍


_________________
Get in, Hold on , Shut up & pass me my Beer!
View user's profile Send private message Visit poster's website AIM Address
Reply with quote
Post  
Great - that worked, the script I used was:

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

Thanks for the help!


_________________
Get in, Hold on , Shut up & pass me my Beer!
View user's profile Send private message Visit poster's website AIM Address
Reply with quote
Post  
Awesome!


_________________
Ryan Doherty
Autosports Labs
View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum