A method of controlling a valve of a cam phaser of an internal combustion
engine includes determining a delta duty cycle from a position error and
a rate of change of error (error dot). A fuzzy gain value is calculated
from the delta duty cycle and a correction term. A duty cycle is
calculated from an integral gain value and the fuzzy gain value. The duty
cycle is then used to control the valve of the cam phaser.