vzsv8
August 22nd, 2018, 08:05 PM
I have been trying to calculate fuel economy custom PIDs in V8 in Litres per Hour and Litres per 100 kM. Each time I performed a division using a PID all I got was a full trace of zeros. eg / pid("VSS") or /pid("ECM.VSS"). The problem appears to be that as soon as an error is generated (ie divide by zero, such as when VSS = 0) the 'return' value remains at zero from then on.
I ended up using an if, then, else statement to trap the error and no more error.
I have included a Chart screenshot and UserCalculatedPids.ini for your enjoyment.
The vehicle is a 2007 Holden Calais 6.0 Litre L98. The LPH and LPer100kM figures match well with the DIC and manually calculated figures.
Cheers Steve.
ps UserCalculatedPids.ini has a .txt extension.
I ended up using an if, then, else statement to trap the error and no more error.
I have included a Chart screenshot and UserCalculatedPids.ini for your enjoyment.
The vehicle is a 2007 Holden Calais 6.0 Litre L98. The LPH and LPer100kM figures match well with the DIC and manually calculated figures.
Cheers Steve.
ps UserCalculatedPids.ini has a .txt extension.