Treehopper C++ API
Mpu9250.h
Go to the documentation of this file.
1 #pragma once
2 
6 
8 
9 namespace Treehopper {
10  namespace Libraries {
11  namespace Sensors {
12  namespace Inertial {
14  : virtual public Mpu6050,
15  virtual public Magnetometer {
16  public:
17  Mpu9250(I2c &i2c, bool addressPin = false, int rate = 100);
18 
19  void update();
20 
21  bool enableMagnetometer = true;
22  private:
23  Ak8975 mag;
24  };
25  }
26  }
27  }
28 }
Base I2c interface.
Definition: I2c.h:10
#define LIBRARIES_API
Definition: Treehopper.Libraries.h:17
Definition: AdcPin.h:3