Treehopper C++ API
Mpu6050.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "Mpu6050Registers.h"
5 #include "Accelerometer.h"
6 #include "Gyroscope.h"
7 #include "SMBusDevice.h"
9 
11 
12 namespace Treehopper {
13  namespace Libraries {
14  namespace Sensors {
15  namespace Inertial {
17  : virtual public Accelerometer,
18  virtual public Gyroscope,
19  virtual public TemperatureSensor {
20  public:
21  Mpu6050(I2c &i2c, bool addressPin = false, int rate = 100);
22 
23  void update();
24 
25  protected:
26  Mpu6050Registers _registers;
27  private:
28  SMBusDevice dev;
29  };
30  }
31  }
32  }
33 }
Base I2c interface.
Definition: I2c.h:10
Definition: SMBusDevice.h:7
#define LIBRARIES_API
Definition: Treehopper.Libraries.h:17
Definition: AdcPin.h:3