IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
mpu6050_c.h File Reference
#include "mpu6050.h"
Include dependency graph for mpu6050_c.h:
This graph shows which files directly or indirectly include this file:

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).

Macro Definition Documentation

◆ ACCELERATION_RANGE_CONFIG_MP6050

#define ACCELERATION_RANGE_CONFIG_MP6050   MPU6050_ACCEL_RANGE_16

◆ TAG_MPU6050

#define TAG_MPU6050   "MPU6050"

Function Documentation

◆ mpu6050_c_init()

esp_err_t mpu6050_c_init ( mpu6050_dev_t * dev)

Initialize MPU6050 descriptor for reading acceleration.

Parameters
devpointer where the descriptor will be stored.
Returns
esp_err_t ESP_OK if success.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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).

Parameters
devpointer to the MPU6050 device descriptor.
accelpointer where the linear acceleration readings will be stored (m/s^2).
rotpointer where the angular acceleration readings will be stored (º/s^2).
Here is the call graph for this function:
Here is the caller graph for this function: