Skip to content

Commit

Permalink
deactivate downloadArray
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgilbers committed Sep 24, 2024
1 parent 3ed700a commit 02da5a0
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 @@ -30,7 +30,7 @@ function handleOrientation (event) {
downloadArray[downloadArray.length - 1].push(30, 14, 69)
} else {
// orientationArray = addValue([event.webkitCompassHeading, event.beta, event.gamma], orientationArray)
downloadArray[downloadArray.length - 1].push(event.webkitCompassHeading, event.beta, event.gamma)
// downloadArray[downloadArray.length - 1].push(event.webkitCompassHeading, event.beta, event.gamma)
motionArray[motionArray.length - 1].push(event.webkitCompassHeading, event.beta, event.gamma)
const filteredArrays = kFilter(motionArray).map((element) => [element[0], element[1], element[2], element[3], element[4], element[5]]) // Wende den Filter an

Expand Down Expand Up @@ -76,7 +76,7 @@ function handleMotion (event) {
// downloadArray.push([0.2, 0.1, 0.5])
} else {
// accelerationArray = addValue([event.acceleration.x, event.acceleration.y, event.acceleration.z], accelerationArray)
downloadArray.push([event.acceleration.x, event.acceleration.y, event.acceleration.z])
// downloadArray.push([event.acceleration.x, event.acceleration.y, event.acceleration.z])
if (motionArray.length >= kalmanArrayLength) {
motionArray.shift()
}
Expand Down

0 comments on commit 02da5a0

Please sign in to comment.