IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
mpu6050_c.h
Go to the documentation of this file.
1#ifndef MPU6050_C_H
2#define MPU6050_C_H
3
4#include "mpu6050.h"
5
6#define TAG_MPU6050 "MPU6050"
7
8// Set the desired acceleration range.
9#define ACCELERATION_RANGE_CONFIG_MP6050 MPU6050_ACCEL_RANGE_16
10
17esp_err_t mpu6050_c_init(mpu6050_dev_t *dev);
18
31
32
33#endif // MPU6050_C_H
esp_err_t mpu6050_c_init(mpu6050_dev_t *dev)
Initialize MPU6050 descriptor for reading acceleration.
Definition mpu6050_c.c:8
void mpu6050_c_read(mpu6050_dev_t *dev, mpu6050_acceleration_t *accel, mpu6050_rotation_t *rot)
Read data from MPU6050 and store linear acceleration (m/s^2) and angular acceleration (ยบ/s^2).
Definition mpu6050_c.c:35
Definition mpu6050.h:84
Definition mpu6050.h:287
Definition mpu6050.h:94