Rev 1965 | Rev 1969 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1965 | Rev 1967 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _SENSORS_H |
1 | #ifndef _SENSORS_H |
2 | #define _SENSORS_H |
2 | #define _SENSORS_H |
Line 3... | Line 3... | ||
3 | 3 | ||
- | 4 | #include <inttypes.h> |
|
Line 4... | Line 5... | ||
4 | #include <inttypes.h> |
5 | #include "configuration.h" |
5 | 6 | ||
6 | /* |
7 | /* |
7 | * Whether (pitch, roll, yaw) gyros are reversed (see analog.h). |
8 | * Whether (pitch, roll, yaw) gyros are reversed (see analog.h). |
Line 8... | Line 9... | ||
8 | */ |
9 | */ |
9 | extern const uint8_t GYRO_REVERSED[3]; |
10 | extern const uint8_t GYRO_REVERSED[3]; |
10 | 11 | ||
11 | /* |
12 | /* |
12 | * Whether (pitch, roll, Z) acc. meters are reversed(see analog.h). |
- | |
13 | */ |
13 | * Whether (pitch, roll, Z) acc. meters are reversed(see analog.h). |
Line 14... | Line 14... | ||
14 | extern const uint8_t ACC_REVERSED[3]; |
14 | */ |
15 | 15 | extern const uint8_t ACC_REVERSED[3]; |
|
16 | extern volatile sensorOffset_t DACValues; |
16 | extern volatile sensorOffset_t gyroAmplifierOffset; |
17 | 17 | ||
18 | /* |
18 | /* |
19 | * Common procedures for all gyro types. |
19 | * Common procedures for all gyro types. |
20 | * FC 1.3 hardware: Searching the DAC values that return neutral readings. |
20 | * FC 1.3 hardware: Searching the DAC values that return neutral readings. |
Line 21... | Line 21... | ||
21 | * FC 2.0 hardware: Nothing to do. |
21 | * FC 2.0 hardware: Nothing to do. |
- | 22 | * InvenSense hardware: Output a pulse on the AUTO_ZERO line. |
|
- | 23 | */ |
|
- | 24 | void gyro_calibrate(void); |
|
- | 25 | ||
- | 26 | /* |
|
22 | * InvenSense hardware: Output a pulse on the AUTO_ZERO line. |
27 | * FC 1.3: Output data in gyroAmplifierOffset to DAC. All other versions: Do nothing. |
23 | */ |
28 | */ |
24 | void gyro_calibrate(void); |
29 | void gyro_loadOffsets(uint8_t overwriteWithDefaults); |
Line 25... | Line 30... | ||
25 | 30 |