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 a1e1afc commit db6def2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/sensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function handleMotion (event) {
globalY += groundAccel.ay
}

updateFieldIfNotNull('X_position', globalX)
updateFieldIfNotNull('Y_position', globalY)
updateFieldIfNotNull('X_position', groundAccel.ax)
updateFieldIfNotNull('Y_position', groundAccel.ay)

updateFieldIfNotNull('Accelerometer_gx', event.accelerationIncludingGravity.x)
updateFieldIfNotNull('Accelerometer_gy', event.accelerationIncludingGravity.y)
Expand Down

0 comments on commit db6def2

Please sign in to comment.