Headlamp control to prevent glare

At least one external lamp (22) for controlling the controlled system of the vehicle (40) includes a sensor array (52) and a control unit (44). A sensor array (52) capable of detecting light level in front of the controlled vehicle. The control unit (44) and the sensor array (52) and at least one external lamp communication and determining from the at least one external lamp controlled vehicle to the preceding vehicle distance and angle. Based on the output from the sensor array (52), the control unit (44) for at least one external lamp (22) as a function of the control operation of distance and angle, and to prevent at least one external lamp (22) on the front of the vehicle the driver with damaging glare.