Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: QEI2 chair_BNO055 PID Watchdog VL53L1X_Filter ros_lib_kinetic
Dependents: wheelchairControlSumer19 Version1-0
Diff: chair_imu.h
- Revision:
- 5:e0ccaab3959a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chair_imu.h Tue Jul 17 07:19:04 2018 +0000
@@ -0,0 +1,34 @@
+#ifndef Chair_imu
+#define Chair_imu
+
+#include "mbed.h"
+#include "math.h"
+#include "BNO055.h"
+
+#define PI 3.141593
+#define SDA D14
+#define SCL D15
+
+class chair_imu
+{
+public:
+ chair_imu();
+ chair_imu(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 roll();
+ double pitch();
+ double yaw();
+
+private:
+ BNO055* imu;
+
+};
+
+#endif