Added Back ToF code
Dependencies: QEI2 PID IMU6050Ver11 Watchdog VL53L1X_Filter ros_lib_kinetic
Dependents: Version1-6 Version1-7
Diff: wheelchair.h
- Revision:
- 5:e0ccaab3959a
- Parent:
- 3:a5e71bfdb492
- Child:
- 6:0cd57bdd8fbc
diff -r 29a27953fe70 -r e0ccaab3959a wheelchair.h --- 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