A disk drive having a heater element on the read/write head includes
control circuitry to prevent head/disk contact by limiting power to the
heater element. As the power to the heater element increases, thermal
expansion reduces the fly height until head/disk contact occurs. During
drive calibration, a maximum power level allowed to the heater element is
determined by detecting heater power at a level where a parameter value
such as motor current exceeds a threshold level.