Sunroof and Sunshade Motors
WARNING: This page is about a different car, the 2008 Cadillac CTS. However, it is still accessible from the selected car via links, so may be relevant.
The sunroof and sunshade module assemblies have bi-directional motors. The motors ground is removed when the sunroof or sunshade reaches the soft stop end of travel position. This is based on the learned position that was performed during the initialization process. The internal hall effect sensors within the sunroof and sunshade control module assemblies create pulses that are counted by the modules until the end of travel position is reached.