Rev 1955 | Rev 1961 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1955 | Rev 1960 | ||
---|---|---|---|
Line 186... | Line 186... | ||
186 | extern volatile int16_t UBat; |
186 | extern volatile int16_t UBat; |
Line 187... | Line 187... | ||
187 | 187 | ||
188 | // 1:11 voltage divider, 1024 counts per 3V, and result is divided by 3. |
188 | // 1:11 voltage divider, 1024 counts per 3V, and result is divided by 3. |
Line -... | Line 189... | ||
- | 189 | #define UBAT_AT_5V (int16_t)((5.0 * (1.0/11.0)) * 1024 / (3.0 * 3)) |
|
- | 190 | ||
- | 191 | typedef struct { |
|
- | 192 | uint8_t checksum; |
|
- | 193 | uint8_t revisionNumber; |
|
- | 194 | int16_t offsets[3]; |
|
- | 195 | } sensorOffset_t; |
|
- | 196 | ||
- | 197 | extern sensorOffset_t gyroOffset; |
|
189 | #define UBAT_AT_5V (int16_t)((5.0 * (1.0/11.0)) * 1024 / (3.0 * 3)) |
198 | extern sensorOffset_t accOffset; |
190 | 199 | ||
191 | /* |
200 | /* |
192 | * This is not really for external use - but the ENC-03 gyro modules needs it. |
201 | * This is not really for external use - but the ENC-03 gyro modules needs it. |