A method of controlling a laser diode measures an average light output
power of the laser diode and compares the average light output power to a
desired average light output power within a target range. If the average
light output power is not within the target range, the slope efficiency
is determined by measuring two light output powers at two different bias
conditions. Each of the two light output powers is greater than a
selected minimum light output power, which insures that each measurement
occurs within the slope efficiency portion of the laser diode curve. A
new bias current for the laser diode is calculated based on the measured
slope efficiency so as to produce a new average light output power within
the target range.