00001 00002 #ifndef PWM_COMPASS_H 00003 #define PWM_COMPASS_H 00004 00005 #include "coridium.h" 00006 #include "cor_hwlib.h" 00007 #include "cor_wrflash.h" 00008 00009 #include "string.h" 00010 #include "printf.h" 00011 00012 //compass related functions 00013 int initializeCompass(int pwm_pin, int calibrate_pin); 00014 int getCompassHeading(); 00015 void calibrateCompass(); 00016 00017 #endif