Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
mpu6050.h File Reference
#include "vec3.h"
#include "i2c.h"
#include "mpu6050_reg.h"
Include dependency graph for mpu6050.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MPU6050
 

Macros

#define I2C_TIMEOUT   (5)
 

Enumerations

enum  Accel_Scale { SCALE_2G = 0, SCALE_4G, SCALE_8G, SCALE_16G }
 
enum  Gyro_Scale { SCALE_250 = 0, SCALE_500, SCALE_1000, SCALE_2000 }
 

Functions

int8_t MPU6050_Init (struct MPU6050 *mpu)
 
int8_t MPU6050_Read_Temp (struct MPU6050 *mpu)
 
int8_t MPU6050_Read_RawAccel (struct MPU6050 *mpu)
 
int8_t MPU6050_Read_RawGyro (struct MPU6050 *mpu)
 
int8_t MPU6050_Read_RawAxes (struct MPU6050 *mpu)
 
int8_t MPU6050_Read_NormAccel (struct MPU6050 *mpu)
 
int8_t MPU6050_Read_NormGyro (struct MPU6050 *mpu)
 
int8_t MPU6050_Read_NormAxes (struct MPU6050 *mpu)
 
Vec3< float > MPU6050_Calc_OmegaBias (struct MPU6050 *mpu, uint32_t n)
 

Macro Definition Documentation

◆ I2C_TIMEOUT

#define I2C_TIMEOUT   (5)

Enumeration Type Documentation

◆ Accel_Scale

Enumerator
SCALE_2G 
SCALE_4G 
SCALE_8G 
SCALE_16G 

◆ Gyro_Scale

enum Gyro_Scale
Enumerator
SCALE_250 
SCALE_500 
SCALE_1000 
SCALE_2000 

Function Documentation

◆ MPU6050_Calc_OmegaBias()

Vec3<float> MPU6050_Calc_OmegaBias ( struct MPU6050 mpu,
uint32_t  n 
)
Here is the call graph for this function:

◆ MPU6050_Init()

int8_t MPU6050_Init ( struct MPU6050 mpu)

◆ MPU6050_Read_NormAccel()

int8_t MPU6050_Read_NormAccel ( struct MPU6050 mpu)
Here is the call graph for this function:

◆ MPU6050_Read_NormAxes()

int8_t MPU6050_Read_NormAxes ( struct MPU6050 mpu)
Here is the call graph for this function:

◆ MPU6050_Read_NormGyro()

int8_t MPU6050_Read_NormGyro ( struct MPU6050 mpu)
Here is the call graph for this function:

◆ MPU6050_Read_RawAccel()

int8_t MPU6050_Read_RawAccel ( struct MPU6050 mpu)

◆ MPU6050_Read_RawAxes()

int8_t MPU6050_Read_RawAxes ( struct MPU6050 mpu)
Here is the call graph for this function:

◆ MPU6050_Read_RawGyro()

int8_t MPU6050_Read_RawGyro ( struct MPU6050 mpu)

◆ MPU6050_Read_Temp()

int8_t MPU6050_Read_Temp ( struct MPU6050 mpu)