Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgilbers committed Sep 25, 2024
1 parent b6c8741 commit 38cf955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/Position.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ export function kFilter (arr) {
sensorCovariance: [1, 1, 1, 1, 1, 1]
},
dynamic: {
name: 'constant-speed',
covariance: [0.1, 0.5]
name: 'constant-speed'
// covariance: [0.1, 0.5]
}
})
const res = kFilter.filterAll(arr)
return res
}

function detectPeak (data) {
export function detectPeak (data) {
const len = data.length
if (len < 3) return false

Expand Down

0 comments on commit 38cf955

Please sign in to comment.