#pragma once

#include <stdbool.h>

#include "esp_err.h"

typedef struct {
    float accel_m_s2[3];
    float gyro_rad_s[3];
    float mag_u_t[3];
    float rpy_rad[3];
    bool imu_ok;
    bool mag_ok;
} guguji_sensor_state_t;

esp_err_t guguji_sensors_init(void);
void guguji_sensors_update(guguji_sensor_state_t *state, float dt_s);
