Page 1 of 1
Auto Logging from start to finish of laps
Posted: Sun Aug 28, 2016 8:30 pm
by Dirty Deeds
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.
Posted: Thu Sep 01, 2016 12:35 pm
by gizmodo
What kind of event are you doing? Based on the requirements I'd guess you're autocrossing, is that right?
Posted: Fri Sep 02, 2016 4:46 pm
by toga94m
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...
Code: Select all
function onTick()
if getAnalog(7) > 13 then
startLogging()
else
stopLogging()
end
end
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.
Posted: Mon Sep 05, 2016 5:10 pm
by rdoherty
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.
Posted: Sat Oct 08, 2016 5:36 pm
by Dirty Deeds
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
Posted: Fri Oct 14, 2016 6:29 am
by brentp
You might try that out - just ensure you have your tick rate set to 10Hz or higher, so it has a chance to catch it in the start finish point.
let us know how it goes!