Patent attributes
Embodiments herein relate to a method for handling light source impairment. The position of a user's eye(s) when the user is inside the vehicle is obtained. The position of a light source outside the vehicle and an intensity of light from the light source in relation to the position of the user's eye(s) is obtained. Then, it is determined whether the user's vision is impaired by the light source. The determining is done based on whether there is a line of sight between the light source and the user's eye(s), and based on the intensity of light at the user's eye(s). It is determined whether at least one safety measure should be performed by the vehicle based on whether the user's vision is impaired by the light source.