With pid left, right, and foward

Dependencies:   BNO055

Dependents:   wheelchaircontrol wheelchaircontrolRosCom wheelchaircontrol wheelchaircontrol2 ... more

Fork of chair_BNO055 by ryan lin

Revision:
0:ad7a811c859f
Child:
1:3258d62af038
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/chair_BNO055.h	Fri Jul 20 17:54:09 2018 +0000
@@ -0,0 +1,34 @@
+#ifndef CHAIR_BNO055_H
+#define CHAIR_BNO055_H
+
+#include  "mbed.h"
+#include  "math.h"
+#include  "BNO055.h"
+
+#define PI 3.141593
+#define SDA D14
+#define SCL D15
+
+
+class chair_BNO055
+{
+public:
+  chair_BNO055();
+  chair_BNO055(PinName sda_pin, PinName scl_pin);
+  void setup();
+  double accel_x();
+  double accel_y();
+  double accel_z();
+  double gyro_x();
+  double gyro_y();
+  double gyro_z();
+  double angle_north();
+  double yaw();
+  double pitch();
+  double roll();
+  
+private:
+  BNO055* imu;
+};
+
+#endif