An engine system that compensates for disturbances in a crankshaft signal
is provided. The system includes: an error module that computes an error
between an ideal period and an actual period of a crankshaft signal; a
correction factor module that determines a correction factor based on the
error; and a compensation module that applies the correction factor to
the actual period of the crankshaft signal.