|
IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
|
#include "mpu6050.h"

Go to the source code of this file.
Classes | |
| struct | SensorDataQueue_t |
| Data packet structure for passing sensor readings between tasks. More... | |
Macros | |
| #define | ACTIVATE_MPU6050 1 |
| Enable MPU6050 sensor for linear acceleration and angular rotation. | |
| #define | ACTIVATE_MS5611 1 |
| Enable MS5611 pressure and temperature sensor. | |
| #define | ACTIVATE_SD 1 |
| Enable SD card logging for saving flight data. | |
| #define | ACTIVATE_BLE 1 |
| Enable BLE control and telemetry transmission. | |
| #define | I2C_SCL_IO 22 |
| I2C bus configuration for sensor communication with MS5611 and MPU6050. | |
| #define | I2C_SDA_IO 21 |
| #define | I2C_NUM I2C_NUM_0 |
| #define | I2C_FREQ_HZ 400000 |
| #define | TAG_SENSORS_READING "Sensors Reading" |
Enumerations | |
| enum | ROCKET_STATUS_T { PREPARING_FOR_FLIGHT , READY_TO_FLY , ASCENDING , DESCENDING_WITH_DROGUE , DESCENDING_WITH_MAIN , LANDED } |
| Rocket flight status states. More... | |
Functions | |
| void | sensors_reading () |
| Main FreeRTOS task function for reading all sensors. | |
| #define ACTIVATE_BLE 1 |
Enable BLE control and telemetry transmission.
| #define ACTIVATE_MPU6050 1 |
Enable MPU6050 sensor for linear acceleration and angular rotation.
| #define ACTIVATE_MS5611 1 |
Enable MS5611 pressure and temperature sensor.
| #define ACTIVATE_SD 1 |
Enable SD card logging for saving flight data.
| #define I2C_FREQ_HZ 400000 |
| #define I2C_NUM I2C_NUM_0 |
| #define I2C_SCL_IO 22 |
I2C bus configuration for sensor communication with MS5611 and MPU6050.
| #define I2C_SDA_IO 21 |
| #define TAG_SENSORS_READING "Sensors Reading" |
| enum ROCKET_STATUS_T |
Rocket flight status states.
Enumerates the possible phases of the rocket's flight sequence.
| void sensors_reading | ( | ) |
Main FreeRTOS task function for reading all sensors.
Initializes peripherals, reads sensor data in an infinite loop and pushes new data into the queue to notify the flight controller.
< esp_err_t value indicating success (no error)
< esp_err_t value indicating success (no error)

