Disable tap detection by default, simplify tracking
This commit is contained in:
@@ -61,7 +61,7 @@ static void lsmWrite(uint8_t reg, uint8_t val) {
|
||||
Wire1.endTransmission();
|
||||
}
|
||||
|
||||
// ISR
|
||||
// ISR
|
||||
static void imuInt1ISR() {
|
||||
imuWakeFlag = true;
|
||||
}
|
||||
@@ -206,10 +206,8 @@ void sleepManagerWakeIMU() {
|
||||
|
||||
// Reset motion filter state to prevent a cursor jump on the first frame.
|
||||
extern float accumX, accumY;
|
||||
extern float prevAx, prevAy, prevAz;
|
||||
extern unsigned long lastTime;
|
||||
accumX = accumY = 0.0f;
|
||||
prevAx = 0.0f; prevAy = 0.0f; prevAz = 0.0f;
|
||||
lastTime = millis();
|
||||
|
||||
sleepStage = SLEEP_AWAKE;
|
||||
|
||||
Reference in New Issue
Block a user