Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2108 | - | 1 | #ifndef _SENSORS_H |
2 | #define _SENSORS_H |
||
3 | |||
4 | #include <inttypes.h> |
||
5 | #include "configuration.h" |
||
6 | |||
7 | extern sensorOffset_t gyroAmplifierOffset; |
||
8 | |||
9 | /* |
||
10 | * Common procedures for all gyro types. |
||
11 | * FC 1.3 hardware: Searching the DAC values that return neutral readings. |
||
12 | * FC 2.0 hardware: Nothing to do. |
||
13 | * InvenSense hardware: Output a pulse on the AUTO_ZERO line. |
||
14 | */ |
||
15 | void gyro_calibrate(void); |
||
16 | |||
17 | /* |
||
18 | * FC 1.3: Output data in gyroAmplifierOffset to DAC. All other versions: Do nothing. |
||
19 | */ |
||
20 | void gyro_init(void); |
||
21 | |||
22 | /* |
||
23 | * Set some default FC parameters, depending on gyro type: Drift correction etc. |
||
24 | */ |
||
25 | void gyro_setDefaultParameters(void); |
||
26 | |||
27 | #endif |