XYZ platform including 3 motors and 8 magnetometers (LIS3MDL).

Fork of XYZ_sensor_Platform by Shih-Ho Hsieh

Revision:
2:856f03e64695
Parent:
0:b9e728e5c47c
Child:
3:2194b5b4f82a
--- a/xyz_sensor_platform.h	Wed Nov 08 14:15:25 2017 +0000
+++ b/xyz_sensor_platform.h	Thu Nov 09 03:40:43 2017 +0000
@@ -2,7 +2,7 @@
 #define __XYZ_SENSOR_PLATFORM_H
 
 /*** Includes ----------------------------------------------------------------- ***/
-#include "mbed.h"
+//#include "mbed.h"
 #include "altimu_10_v5.h"
 #include "motor.h"
 #include "motor_targets.h"
@@ -21,11 +21,11 @@
     void init(void);
     
     void go_forward() {
-        motorX->go(UP);
+        motorY->go(DOWN);
     }
     
-    void go_fackward() {
-        motorX->go(DOWN);
+    void go_backward() {
+        motorX->go(UP);
     }
     
     void go_up() {