Skip to content

Commit

Permalink
Fixed gravity not working before first calibration (though the user r…
Browse files Browse the repository at this point in the history
…eally should calibrate for acceleration to work correctly)
  • Loading branch information
JibbSmart committed Jun 2, 2021
1 parent 3a56a24 commit 2bc757c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GamepadMotion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ void GamepadMotion::GetCalibratedSensor(float& gyroOffsetX, float& gyroOffsetY,
gyroOffsetX = 0.f;
gyroOffsetY = 0.f;
gyroOffsetZ = 0.f;
accelMagnitude = 0.f;
accelMagnitude = 1.f;
return;
}

Expand Down

0 comments on commit 2bc757c

Please sign in to comment.