Sunroof Motor
WARNING: This page is about a different car, the 2009 Saturn Vue. However, it is still accessible from the selected car via links, so may be relevant.
The sunroof motor/actuator assembly has a bi-directional motor. The sunroof motor understands when it has driven the sunroof glass to the vent, close, and full open positions based on the internal hall effect sensors within the motor/actuator assembly. It interprets the hall effect sensor combinations and controls the sunroof motor to comfort stop the sunroof glass at the open closed position.