library for chair for mpu

Dependencies:   MPU9250

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers chair_MPU9250.h Source File

chair_MPU9250.h

00001 #ifndef CHAIR_MPU925_H
00002 #define CHAIR_MPU925_H
00003 
00004 #include "mbed.h"
00005 #include "MPU9250.h"
00006 
00007 #define SDA D14
00008 #define SCL D15
00009 
00010 class chair_MPU9250
00011 {
00012 
00013 public:
00014   chair_MPU9250(Serial* out, Timer* time);
00015   chair_MPU9250(PinName sda_pin, PinName scl_pin, Serial* out, Timer* time);
00016   void setup();
00017   double yaw();
00018 
00019 private:
00020   MPU9250* imu;
00021   Serial* usb;
00022   Timer* t;
00023   bool start;
00024   void setStart();
00025 };
00026 
00027 #endif