Honda reverse lock script help

Discussion on the Lua Scripting capabilities for RaceCapture/Pro. Also see the <a href="http://autosportlabs.net/RaceCapturePro_Lua_Scripting">Lua Scripting Guide</a>

Moderators: JeffC, stieg

Post Reply
PopKorn78
Posts: 62
Joined: Mon Mar 16, 2015 2:07 am

Honda reverse lock script help

Post by PopKorn78 »

Hi guys,

I did a k series swap in my race car. Long story short, I need to activate the reverse lock when racing to not go to far when shifting in fifth.

Common way to fix this is to put the lock wire to the ground with a switch. That can be an issue if reverse is required after a spin and the driver forgets to flip the switch back.

I wonder if someone could help me with a script that could do the same as the switch(wire to ground) when the car gets to a speed over 20 mph and disengage when under 20.

Thanks in advance

PopKorn78
Posts: 62
Joined: Mon Mar 16, 2015 2:07 am

Post by PopKorn78 »

So I thought about it and I thinking that this script should do it.

function onTick()
if getGpsSpeed() > 10 then
setGpio(0, 1)
else
setGpio(0, 0)
end
end


Is running my "switch" trough the GPIO to get it to ground a good idea?

brentp
Site Admin
Posts: 6274
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Correct, you can use a GPIO to drive a circuit up to 1A - such as an indicator light or relay.

Specs here: http://wiki.autosportlabs.com/RaceCapture

Whether this is a good idea for your race car, I cannot say! :D

Hope it helps
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Post Reply