Rev 1821 | Rev 1872 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1821 | Rev 1869 | ||
---|---|---|---|
Line 185... | Line 185... | ||
185 | 185 | ||
186 | extern volatile uint16_t ADCycleCount; |
186 | extern volatile uint16_t ADCycleCount; |
Line 187... | Line 187... | ||
187 | extern volatile int16_t UBat; |
187 | extern volatile int16_t UBat; |
188 | 188 | ||
Line 189... | Line 189... | ||
189 | // 1:11 voltage divider, 1024 counts per 3V, and result is divided by 3. |
189 | // 1:11 voltage divider, 1024 counts per 3V, and result is divided by 3. |
190 | #define UBAT_AT_5V (int16_t)((5.0 / 3.0) * (1.0/11.0) / (3.0 * 1024)) |
190 | #define UBAT_AT_5V (int16_t)((5.0 * (1.0/11.0)) * 1024 / (3.0 * 3)) |
191 | 191 | ||
192 | /* |
192 | /* |
Line 197... | Line 197... | ||
197 | /* |
197 | /* |
198 | * The acceleration values that this module outputs. They are zero based. |
198 | * The acceleration values that this module outputs. They are zero based. |
199 | */ |
199 | */ |
200 | extern volatile int16_t acc[3]; |
200 | extern volatile int16_t acc[3]; |
201 | extern volatile int16_t filteredAcc[2]; |
201 | extern volatile int16_t filteredAcc[2]; |
- | 202 | extern volatile int32_t stronglyFilteredAcc[3]; |
|
Line 202... | Line 203... | ||
202 | 203 | ||
203 | /* |
204 | /* |
204 | * Diagnostics: Gyro noise level because of motor vibrations. The variables |
205 | * Diagnostics: Gyro noise level because of motor vibrations. The variables |
205 | * only really reflect the noise level when the copter stands still but with |
206 | * only really reflect the noise level when the copter stands still but with |