I updated this wiki page:
http://wiki.vdrift.net/Car_parameters#Engine
with details on the fuel consumption parameter.
Quote:The actual fuel consumed each second (in units of liters) is the fuel-consumption parameter times RPM times throttle (throttle is from 0.0 to 1.0, where 1.0 is full throttle).
So if Fs is the fuel consumed each second (in liters), Fc is the fuel-consumption parameter, RPM is the rpm, and T is the throttle:
Code:
Fs = Fc * RPM * T
Fc = Fs / (RPM * T)
Because we have the miles per gallon parameter (which we'll call MPG), and Fs is in units of liters per second, we need to convert between the two by adding a parameter MPH for speed (in miles per hour), so:
Code:
MPG / MPH = Fs * 3600 * 3.785
Fs = MPG / (MPH * 3600 * 3.785)
We can plug that in above, and:
Code:
Fc = MPG / (MPH * 3600 * 3.785 * RPM * T)
So if your car gets 12 MPG highway and at 70 MPH your RPM is 3000 and your throttle to maintain that speed is 0.3 (random numbers I pulled from the air), then:
Code:
Fc = 12 / (70 * 3600 * 3.785 * 3000 * 0.3)
Fc = 1.398e-8
So... try that value. :-) Someone double check my math!