187,7 → 187,7 |
extern volatile int16_t UBat; |
|
// 1:11 voltage divider, 1024 counts per 3V, and result is divided by 3. |
#define UBAT_AT_5V (int16_t)((5.0 / 3.0) * (1.0/11.0) / (3.0 * 1024)) |
#define UBAT_AT_5V (int16_t)((5.0 * (1.0/11.0)) * 1024 / (3.0 * 3)) |
|
/* |
* This is not really for external use - but the ENC-03 gyro modules needs it. |
199,6 → 199,7 |
*/ |
extern volatile int16_t acc[3]; |
extern volatile int16_t filteredAcc[2]; |
extern volatile int32_t stronglyFilteredAcc[3]; |
|
/* |
* Diagnostics: Gyro noise level because of motor vibrations. The variables |