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