A method for controlling a diesel engine, is provided where when a vehicle
is traveling on a downgrade, an enable vehicle speed is set according to a
calculated aiming error, and a vehicle speed limit is modified based on an
accelerator pedal position and by an offset value that is set according to
an enable error calculated based on the present vehicle speed limit, the
present vehicle speed, and the enable vehicle speed.