MPG/KML Calculation For Dashboard?

Has anyone figured out how to calculate MPG or KML and add it to the dashboard? It would be a great addition to the trip information.

1 Like

I seem to be working on something similar in this thread: Custom enrichers – my current understanding is that I should read the speed, RPM and cylinder fuel rate PIDs (my truck doesn’t have the engine fuel rate PIDs available), and then calculate the fuel consumption from those (preferably in l/100 km and l/h) using a custom enricher, but I have no idea where to put the code for that.