Kalman

open class Kalman

A basic 1D Kalman filter that estimates state from a model and sensor over time.

Constructors

Link copied to clipboard
constructor(R: Double, Q: Double)
Construct a new 1D Kalman filter.

Properties

Link copied to clipboard
open var K_CONVERGE: Int
Number of iterations to take during construction to converge the K gain.

Functions

Link copied to clipboard
open fun calculate(absModel: Double, sensor: Double): Double
Calculate a new Kalman filter estimate.
Link copied to clipboard
open fun calculateFromDelta(incModel: Double, sensor: Double): Double
Calculate a new Kalman filter estimate.
Link copied to clipboard
open fun reset()
Reset accumulated value to zero.
Link copied to clipboard
Sets the accumulated value.