C++ DevKit
C++ set of OOP library
|
Class that manage the MPU6050 3-axes accelerometer/gyrometer. More...
#include <mpu6050.h>
Public Member Functions | |
MPU6050 (HW_I2C_Master *master, struct_ConfigMPU6050 default_config) | |
Construct a new MPU6050 object. | |
uint16_t | get_FIFO_count () |
Get the FIFO count object. | |
float | get_MPU_temperature () |
Get the MPU temperature object. | |
bool | is_data_ready () |
the flag that indicates if sensors data are ready | |
struct_I2CXferResult | get_measures () |
Get the raw data, fill the internal struct_RawData, converts raw data to real measures according to offset and coversion factor. | |
void | read_FIFO_all_raw_data () |
read raw data from FIFO | |
Public Attributes | |
struct_MPUData | data |
the set of measures from sensors | |
struct_RawData | raw |
the set of raw data from sensors | |
Class that manage the MPU6050 3-axes accelerometer/gyrometer.
MPU6050::MPU6050 | ( | HW_I2C_Master * | master, |
struct_ConfigMPU6050 | default_config ) |
Construct a new MPU6050 object.
master | The associated I2C bus master |
default_config | the default config according to struct_ConfigMPU6050 |
uint16_t MPU6050::get_FIFO_count | ( | ) |
Get the FIFO count object.
struct_I2CXferResult MPU6050::get_measures | ( | ) |
Get the raw data, fill the internal struct_RawData, converts raw data to real measures according to offset and coversion factor.
float MPU6050::get_MPU_temperature | ( | ) |
Get the MPU temperature object.
bool MPU6050::is_data_ready | ( | ) |
the flag that indicates if sensors data are ready
void MPU6050::read_FIFO_all_raw_data | ( | ) |
read raw data from FIFO