Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1775 | - | 1 | #ifndef _SENSORS_H |
2 | #define _SENSORS_H |
||
3 | |||
4 | #include <inttypes.h> |
||
5 | |||
6 | /* |
||
7 | * Whether (pitch, roll, yaw) gyros are reversed (see analog.h). |
||
8 | */ |
||
9 | extern const uint8_t GYRO_REVERSED[3]; |
||
10 | |||
11 | /* |
||
12 | * Whether (pitch, roll, Z) acc. meters are reversed(see analog.h). |
||
13 | */ |
||
14 | extern const uint8_t ACC_REVERSED[3]; |
||
15 | |||
16 | /* |
||
17 | * Common procedures for all gyro types. |
||
18 | * FC 1.3 hardware: Searching the DAC values that return neutral readings. |
||
19 | * FC 2.0 hardware: Nothing to do. |
||
20 | * InvenSense hardware: Output a pulse on the AUTO_ZERO line. |
||
21 | */ |
||
22 | void gyro_calibrate(void); |
||
23 | |||
24 | /* |
||
25 | * Set some default FC parameters, depending on gyro type: Drift correction etc. |
||
26 | */ |
||
27 | void gyro_setDefaults(void); |
||
28 | |||
29 | #endif |