Tilt between a head stack and its associated disk stack in a hard disk
drive (HDD) is measured by determining the deviation of a target head
from its expected position (based on the position of the current head)
each time electrical contact is switched from the current head to a
target head. A running average tilt value is stored and used to modify
the logical seek distance used in a Rotational Position Optimization
(RPO) algorithm to better order I/O requests in a queue. Also, the
running average tilt value can be used by the servo to pre-position the
target head before electrical contact is made with the target head, to
improve speed of operation.