Treehopper C++ API
Mpu9250.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Libraries/Treehopper.Libraries.h
"
4
#include "
Libraries/Sensors/Inertial/Mpu6050.h
"
5
#include "
Libraries/Sensors/Magnetic/Ak8975.h
"
6
7
using namespace
Treehopper::Libraries::Sensors::Magnetic
;
8
9
namespace
Treehopper
{
10
namespace
Libraries {
11
namespace
Sensors {
12
namespace
Inertial {
13
class
LIBRARIES_API
Mpu9250
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
}
Treehopper::Libraries::Sensors::Magnetic::Ak8975
Definition:
Ak8975.h:12
Treehopper::I2c
Base I2c interface.
Definition:
I2c.h:10
Treehopper::Libraries::Sensors::Magnetic::Magnetometer
Definition:
Magnetometer.h:12
Treehopper::Libraries::Sensors::Inertial::Mpu9250
Definition:
Mpu9250.h:13
Treehopper::Libraries::Sensors::Inertial::Mpu6050
Definition:
Mpu6050.h:16
Treehopper::Libraries::Sensors::Magnetic
Definition:
Ak8975.h:11
Ak8975.h
LIBRARIES_API
#define LIBRARIES_API
Definition:
Treehopper.Libraries.h:17
Treehopper
Definition:
AdcPin.h:3
Mpu6050.h
Treehopper.Libraries.h
C++
API
inc
Libraries
Sensors
Inertial
Mpu9250.h