Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Oct 4, 2024
1 parent 2c64325 commit f4f7059
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,29 @@ T\\
\end{flalign}
$$

### Kalman Filter #2

Kalman filter to estimate vertical displacement in wave using accelerometer,
correct for accelerometer bias, estimate accelerometer bias. This method
assumes that displacement follows trochoidal model and the frequency of
wave is known. Frequency can be estimated using another step with Aranovskiy filter.

In trochoidal wave model there is simple linear dependency between displacement and
acceleration.

$y$ - displacement (at any time):
$y = - L / (2 *pi) * (a/g)$, $g$ - acceleration of free fall constant, $a$ - vertical acceleration

wave length L:
$L = g * period^2 / (2 *pi)$

wave period via frequency:
$period = 1 / f$

$a = - (2 * pi * f)^2 * y$

let
$k_hat = - (2 * pi * f)^2$

### Implementation Notes

Expand Down

0 comments on commit f4f7059

Please sign in to comment.