IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
|
#include "sensors_reading/mpu6050/mpu6050_c.h"
#include "mpu6050.h"
#include "sensors_reading/sensors_reading.h"
#include "freertos/task.h"
#include <esp_log.h>
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). |
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). |