Rev 1971 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1646 | - | 1 | #ifndef _SENSORS_H |
2 | #define _SENSORS_H |
||
1645 | - | 3 | |
1646 | - | 4 | #include <inttypes.h> |
1967 | - | 5 | #include "configuration.h" |
1646 | - | 6 | |
1969 | - | 7 | extern sensorOffset_t gyroAmplifierOffset; |
1646 | - | 8 | |
9 | /* |
||
1612 | dongfang | 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 | |||
1645 | - | 17 | /* |
1967 | - | 18 | * FC 1.3: Output data in gyroAmplifierOffset to DAC. All other versions: Do nothing. |
19 | */ |
||
2018 | - | 20 | void gyro_init(void); |
1967 | - | 21 | |
22 | /* |
||
1645 | - | 23 | * Set some default FC parameters, depending on gyro type: Drift correction etc. |
24 | */ |
||
1971 | - | 25 | void gyro_setDefaultParameters(void); |
1646 | - | 26 | |
27 | #endif |