18 lines
328 B
C
18 lines
328 B
C
#ifndef MPU6000_H
|
|
#define MPU6000_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef struct {
|
|
float pitch; // degrees, filtered
|
|
float pitch_rate; // degrees/sec (raw gyro)
|
|
float accel_x; // g
|
|
float accel_z; // g
|
|
} IMUData;
|
|
|
|
bool mpu6000_init(void);
|
|
void mpu6000_read(IMUData *data);
|
|
|
|
#endif
|