A method controls an assembly using an oscillating wave, such that the
assembly moves in an oscillated manner in relation to a surface of an
optically writable medium in correspondence with oscillation of the
oscillating wave. The assembly generates a beam towards the surface of
the optically writable medium. A proximity signal is detected in response
to the beam being generated towards the surface of the optical medium,
and denotes closeness of the assembly to the surface. A number of peaks
within the proximity signal are determined. The time at which each peak
within the proximity signal occurs is correlated with a value of the
oscillating wave at that time, yielding a number of time-value pairs. The
topology of the surface of the optical medium is approximated from these
time-value pairs.