Appendix L: Pseudocode for Calibration of the Compass
The program enters this routine when the compass
calibration switch SW1 is pressed.
-
Calibrate_Compass
-
Debounce the switch
-
Reset the compass
-
Pulse the compass calibration line for at least 10 ms
-
Wait until the switch is pressed again
-
Pulse compass calibration line for at least 10 ms
-
Debounce the switch
-
RETURN