Is it possible to create a calculated brake channel based on negative g acceleration in the forward direction?
I'm open to doing this post run via excel. Or alternatively via a calculated math channel in LUA.
I'm clueless as how I might correlate negative G to brake pressure.
Has anyone tried this?
Discussion on the Lua Scripting capabilities for RaceCapture/Pro. Also see the <a href="http://autosportlabs.net/RaceCapturePro_Lua_Scripting">Lua Scripting Guide</a>
7 posts • Page 1 of 1
I found some time tonight to integrate your brakeg script. I ran into two issues; see bold. The first was the missing parentheses. Easy enough. The second was that brakeG was displaying acceleration Gs. I removed the sign switch and that fixed the issue.
Code: Select all
brakegId=addChannel("BrakeG",10,2,0,1.5,"G") totalgId=addChannel("TotalG",10,2,0,1.5,"G") local g1=getImu(0) local u3=getGpsSpeed() local b2=([b]-1*[/b]g1)-((u3^2/10000)[b])[/b] if b2>0 then setChannel(brakegId,b2) end local g2=getImu(1) local g3=((g1^2)+(g2^2))^(0.5) setChannel(totalgId,g3)
Now that I have brakeG I assume I point RaceRender at this channel as my brake input. How did you scale it from 0 to 100 for brake input? Can you set 0 Gs = 0 and my highest brake G as 100? This doesn't necessarily represent the brake pedal input. Am I missing something or is this as good as it gets without a brake pressure sender?