A method for measuring illuminance of a lamp utilizes at least one illuminance meter and a rotary apparatus. On a power-on transmission downshift, electric wheel torque is used to compensate for a slow response of an engine to a request for increased traction wheel torque. The portable unit reports to a central controller which selects a correction strategy, such as level of correction to be applied to the animal approaching the perimeter. As a result, variations in sampling delay related to sampling clock signals are suppressed. According to the invention, the correlation result is improved by setting to zero in the frequency domain frequency bins of the vector which do not have a positive impact on the correlation peak at location zero, i.