for textbook v4.4

Dependencies:   HEPTA_SENSOR mbed HEPTA_EPS

Revision:
26:c27c56c3fe93
Parent:
25:c5fa5fc8320b
Child:
27:980fc888f1de
--- a/main.cpp	Wed Aug 21 20:56:24 2019 +0000
+++ b/main.cpp	Wed Aug 21 20:59:29 2019 +0000
@@ -11,11 +11,11 @@
 int main()
 {
     pc.baud(9600);
-    float ax,ay,az;
-    pc.printf("Accel Sensor Mode\r\n");
+    float gx,gy,gz;
+    pc.printf("Gyro Sensor Mode\r\n");
     for(int i = 0; i<50; i++) {
-        sensor.sen_acc(&ax,&ay,&az);
-        pc.printf("%f,%f,%f\r\n",ax,ay,az);
+        sensor.sen_gyro(&gx,&gy,&gz);
+        pc.printf("%f,%f,%f\r\n",gx,gy,gz);
         wait(1.0);
     }
 }
\ No newline at end of file