IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
|
#include "mpu6050.h"
Go to the source code of this file.
Macros | |
#define | TAG_MPU6050 "MPU6050" |
#define | ACCELERATION_RANGE_CONFIG_MP6050 MPU6050_ACCEL_RANGE_16 |
Functions | |
esp_err_t | mpu6050_c_init (mpu6050_dev_t *dev) |
Initialize MPU6050 descriptor for reading acceleration. | |
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). |
#define ACCELERATION_RANGE_CONFIG_MP6050 MPU6050_ACCEL_RANGE_16 |
#define TAG_MPU6050 "MPU6050" |
esp_err_t mpu6050_c_init | ( | mpu6050_dev_t * | dev | ) |
Initialize MPU6050 descriptor for reading acceleration.
dev | pointer where the descriptor will be stored. |
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).
dev | pointer to the MPU6050 device descriptor. |
accel | pointer where the linear acceleration readings will be stored (m/s^2). |
rot | pointer where the angular acceleration readings will be stored (º/s^2). |