Hi Guys,
Can anyone help with the correct script, I'm trying to set up the auto logging to start recording at the beginning of a lap & finish at the end of a lap. Cheers.
Auto Logging from start to finish of laps
-
- Posts: 15
- Joined: Mon Jun 20, 2016 10:31 pm
- Location: Australia
- Contact:
Auto Logging from start to finish of laps
Last edited by Dirty Deeds on Sat Oct 08, 2016 5:37 pm, edited 1 time in total.
Get in, Hold on , Shut up & pass me my Beer!
There are a handful of options here - https://wiki.autosportlabs.com/RaceCapt ... g_Examples I have the battery-voltage version working on my Mk1 hardware. I'm having trouble combining it with reading/logging CANBus channels though. Mk1 has limited script memory available...
I don't mind having some excess non-moving data before and after each run. I prefer that to using a GPS speed trigger, so I don't miss the beginning of the run. Some of our starts have a 90-degree bend before the timing lights, to encourage less speed/burnouts at start, to reduce damage to our parking lot.
Code: Select all
function onTick()
if getAnalog(7) > 13 then
startLogging()
else
stopLogging()
end
end
------------
Learning Race Capture Pro... on someone else's car
Learning Python/Kivy on my own PC
Learning Race Capture Pro... on someone else's car
Learning Python/Kivy on my own PC
You could combine the start/stop logging examples with the function getAtStartFinish() https://wiki.autosportlabs.com/RaceCapt ... nish.28.29
Although I am unsure if that function will return true for a separate start and finish line. You will need some extra code to handle state too.
Although I am unsure if that function will return true for a separate start and finish line. You will need some extra code to handle state too.
Ryan Doherty
Autosports Labs
Autosports Labs
-
- Posts: 15
- Joined: Mon Jun 20, 2016 10:31 pm
- Location: Australia
- Contact:
Thanks guys, we're running jet sprint boats & have tried using auto log Lau with speed & rpm, but we seem to log a lot of small files when warming up etc. making it hard to determine which files are actually laps. Would something like this work? :
function onTick()
if getAtStartFinish() = start
startLogging()
else
if getAtStartFinish() = finish
end
end
function onTick()
if getAtStartFinish() = start
startLogging()
else
if getAtStartFinish() = finish
end
end
Get in, Hold on , Shut up & pass me my Beer!