Revised for integration

Dependencies:   QEI2 chair_BNO055 PID VL53L1X_Filter

Revision:
5:e0ccaab3959a
Parent:
3:a5e71bfdb492
Child:
6:0cd57bdd8fbc
--- a/wheelchair.h	Tue Jul 17 02:29:26 2018 +0000
+++ b/wheelchair.h	Tue Jul 17 07:19:04 2018 +0000
@@ -1,8 +1,7 @@
 #ifndef wheelchair
 #define wheelchair
 
-#include "mbed.h"
-#include "math.h"
+#include "chair_imu.h"
 
 #define def (2.5f/3.3f)
 #define high 3.3f
@@ -17,6 +16,8 @@
 public:
     Wheelchair(PinName xPin, PinName yPin);
     void move(float x_coor, float y_coor);
+    void turn_right();
+    void turn_left();
     void forward();
     void backward();
     void right();
@@ -26,6 +27,7 @@
 private:
     PwmOut* x;
     PwmOut* y;
+    chair_imu* imu;
 
 };
 #endif
\ No newline at end of file