Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgilbers committed Sep 23, 2024
1 parent db6def2 commit 4e93ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/sensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function updateFieldIfNotNull (fieldName, value, precision = 10) {

function handleMotion (event) {
const accel = [event.acceleration.x, event.acceleration.y, event.acceleration.z]
const groundAccel = getGroundAcceleration(accel, yaw, pitch, roll)
let groundAccel = getGroundAcceleration(accel, yaw, pitch, roll)
if (!groundAccel.ax.isNaN()) {
globalX += groundAccel.ax
globalY += groundAccel.ay
Expand Down

0 comments on commit 4e93ecb

Please sign in to comment.