Update compass.c