Window Position Control
To detect the window position and direction of motor rotation, hall sensors are employed. ECU recognizes the fully closed position of the window and sets this relative window position value as "0". When the window goes downwards, based on the information from the hall sensor, the relative position value increments. On the contrary, when the window goes upwards, it decrements.