IMU for lab 2 part 2, part 3 and part 4.

Dependencies:   4DGL-uLCD-SE LSM9DS0 mbed

Fork of 4180_lab2_part2_LSM9DS0 by ECE4180

Revision:
8:4927aa0ab07a
Parent:
7:8c458123a665
--- a/main.cpp	Sat Sep 05 19:38:13 2015 +0000
+++ b/main.cpp	Tue Oct 06 19:16:14 2015 +0000
@@ -13,7 +13,7 @@
 #define LSM9DS0_G_ADDR   0x6B // Would be 0x6A if SDO_G is LOW
 
 // refresh time. set to 500 for part 2 and 50 for part 4
-#define REFRESH_TIME_MS 50
+#define REFRESH_TIME_MS 500
 
 // Verify that the pin assignments below match your breadboard
 LSM9DS0 imu(p9, p10, LSM9DS0_G_ADDR, LSM9DS0_XM_ADDR);
@@ -68,9 +68,9 @@
 	    imu.readAccel();
 	    float heading = imu.calcHeading(); //calculate compass heading
 	    imu.readTemp();
-	    //pc.printf("Compass heading: %2f\n", heading);
-	    //pc.printf("Accelerometer data: %2f, %2f, %2f\n", imu.ax, imu.ay, imu.az);
-	    //pc.printf("Temperature in Fahr: %3.2f\n", imu.temperature_f);
+	    pc.printf("Compass heading: %2f\n", heading);
+	    pc.printf("Accelerometer data: %2f, %2f, %2f\n", imu.ax, imu.ay, imu.az);
+	    pc.printf("Temperature in Fahr: %3.2f\n", imu.temperature_f);
 	    
 	    //Part3 display through real serial COM
 	   //pc.printf("C: %2f\n", heading);