A method of controlling a front sunroof panel, a rear sunroof panel, a front sunshade and a rear sunshade by using a processing unit, electric motors, position sensors and a vehicle occupant accessible switch assembly, the method comprising:
- (a) closing a first electrical circuit with the switch assembly;
- (b) receiving a first electrical signal by the unit, sent from the switch assembly, in response to (a);
- (c) energizing a first of the motors in response to (b);
- (d) moving the front panel in response to (c);
- (e) receiving a second signal by the unit, sent from one of the sensors;
- (f) deenergizing the first motor in response to (e);
- (g) closing a second electric circuit with the switch assembly;
- (h) receiving a third electrical signal by the unit, sent from the switch assembly, in response to (g);
- (i) energizing a second of the motors in response to (h);
- moving the rear panel in response to (i);
- (k) receiving a fourth electrical signal by the unit, sent from a second of the sensors;
- (l) deenergizing the second motor in response to (k);
- (m) closing a third electric circuit with the switch assembly;
- (n) receiving a fifth electrical signal by the unit, sent from the switch assembly, in response to (m);
- (o) energizing a third of the motors in response to (n);
- (p) moving the front sunshade in response to (o);
- (q) closing a fourth electric circuit with the switch assembly;
- (r) receiving a sixth electrical signal by the unit, sent from the switch assembly, in response to (q);
- (s) energizing a fourth of the motors in response to (r);
- (t) moving the rear sunshade in response to (s);
- (u) determining if the switch assembly is in a condition to require simultaneous movement of the panels;
- and
- (v) determining if the switch assembly is in a condition to require movement of one of the panels without requiring movement of the other of the panels.