toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.util
/
Filter
/
Kalman
Kalman
open
class
Kalman
A basic 1D
Kalman filter
that estimates state from a model and sensor over time.
Members
Constructors
Kalman
Link copied to clipboard
constructor
(
R
:
Double
,
Q
:
Double
)
Construct a new 1D Kalman filter.
Properties
K_CONVERGE
Link copied to clipboard
open
var
K_CONVERGE
:
Int
Number of iterations to take during construction to converge the K gain.
Functions
calculate
Link copied to clipboard
open
fun
calculate
(
absModel
:
Double
,
sensor
:
Double
)
:
Double
Calculate a new Kalman filter estimate.
calculate
From
Delta
Link copied to clipboard
open
fun
calculateFromDelta
(
incModel
:
Double
,
sensor
:
Double
)
:
Double
Calculate a new Kalman filter estimate.
reset
Link copied to clipboard
open
fun
reset
(
)
Reset accumulated value to zero.
set
Accumulated
Value
Link copied to clipboard
open
fun
setAccumulatedValue
(
val
:
Double
)
Sets the accumulated value.