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
17
esp_err_t
mpu6050_c_init
(
mpu6050_dev_t
*dev);
18
29
void
mpu6050_c_read
(
mpu6050_dev_t
*dev,
mpu6050_acceleration_t
*accel,
30
mpu6050_rotation_t
*rot);
31
32
33
#endif
// MPU6050_C_H
mpu6050.h
mpu6050_c_init
esp_err_t mpu6050_c_init(mpu6050_dev_t *dev)
Initialize MPU6050 descriptor for reading acceleration.
Definition
mpu6050_c.c:8
mpu6050_c_read
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
mpu6050_acceleration_t
Definition
mpu6050.h:84
mpu6050_dev_t
Definition
mpu6050.h:287
mpu6050_rotation_t
Definition
mpu6050.h:94
include
sensors_reading
mpu6050
mpu6050_c.h
Generated by
1.14.0