Re: Confused…
Funnily enough I was discussing this the other year with a tuner when discussing, ahem, upgrading my SEAT Leon Diesel.
Apparently one of the engine management sensors measures torque on the engine and there is quite a difference between the torque that is applied to the engine when physically moving a car along on a road and that applied when just revving the engine or even getting the car up to speed on a rolling road rig.
It's therefore a simple matter to have a branch in the code depending upon the value of torque on the engine at a given time.