Backtobasics -
It's too technical for me too. I've read versions of similar algorithms over and over. Everything I did is based on this post :
Calculating MPG from VSS and MAF from OBD2
What I programmed is a lot of trial and error until I saw MPG behavior in the same range as the SG.
CarloSW2