This commit is contained in:
2025-04-04 04:48:13 +02:00
commit 2790bfa772
50 changed files with 6158 additions and 0 deletions

15
main/hw/mpu9250.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef MPU9250_COMPONENT
#define MPU9250_COMPONENT
#include "i2cbrn.h"
#define TAG_MPU "MPU9250"
extern i2c_device_config_t MPU9250_DEV_CFG;
extern i2c_master_dev_handle_t MPU9250_DEV_HANDLE;
esp_err_t mpu9250_read_sensor_data(i2c_master_dev_handle_t dev_handle, int16_t *accel, int16_t *gyro, int16_t *temp);
void mpu9250_convert_data(int16_t *accel, int16_t *gyro, int16_t temp, float *accel_out, float *gyro_out, float *temp_out);
void mpu9250_init();
#endif