forked from dccharacter/AHRS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsensors.h
More file actions
28 lines (22 loc) · 717 Bytes
/
Copy pathsensors.h
File metadata and controls
28 lines (22 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef SENSORS_H
#define SENSORS_H
#include "main.h"
#define OUT_QUATERNION
//#define OUT_EULER
//#define OUT_ACCEL
//#define OUT_GYRO
//#define OUT_MAG
#define PI (float) 3.14159265f
void UpdateGyroBias(void);
void Demo_GyroConfig(void);
void Demo_CompassConfig(void);
void updateQuaternions(float * quatBuf);
void getEulerAngles(float *euler);
void getEulerAsArray(uint8_t *eulerArr);
void readAllSensors(uint8_t *GyroTempBuf, uint8_t *AccTempBuf, uint8_t *MagTempBuf);
extern float QuaternionsBuffer[4];
extern uint8_t MagTempBuffer[6], AccTempBuffer[6], GyroTempBuffer[6];
extern float euler[3];
extern uint8_t eulerArr[6];
extern uint8_t GyroDRDFlag;
#endif //#ifndef SENSORS_H