Hi Everyone,
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?
Calculated Brake Pressure
-
- Posts: 138
- Joined: Fri Apr 07, 2017 3:47 pm
- Location: Oakland, CA
-
- Posts: 27
- Joined: Thu Apr 09, 2015 8:18 pm
Here is a way that it has been done.
http://www.jameshakewill.com/brake-trace.pdf
I wrote a script that included it which is in the second post here:
viewtopic.php?t=5227
http://www.jameshakewill.com/brake-trace.pdf
I wrote a script that included it which is in the second post here:
viewtopic.php?t=5227
-
- Posts: 138
- Joined: Fri Apr 07, 2017 3:47 pm
- Location: Oakland, CA
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.Mustangkev wrote:Here is a way that it has been done.
http://www.jameshakewill.com/brake-trace.pdf
I wrote a script that included it which is in the second post here:
viewtopic.php?t=5227
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?
-
- Posts: 27
- Joined: Thu Apr 09, 2015 8:18 pm