1 #ifndef KALMAN_H_LOADED
2 #define KALMAN_H_LOADED 1
40 double p00_, p01_, p10_, p11_;
53 void update(ms_t t,
double speed);
54 void click(ms_t t,
double speed,
double click_angle);
59 double angle(
void)
const {
return theta_; }
77 void verbose(
char verbose_char) { logchar_ = verbose_char; }
double angle_error(void) const
An estimate of the error in angular position, in units of radians-squared.
Definition: kalman.h:66
void update(ms_t t, double speed)
Update the position.
Definition: kalman.cpp:92
void click(ms_t t, double speed, double click_angle)
Update the position with a position measurement.
Definition: kalman.cpp:136
void verbose(char verbose_char)
Enable tracing of the behaviour of the Kalman filter.
Definition: kalman.h:77
double fullspeed_neg(void) const
The current estimate of the reference/maximum speed, when driven in the negative direction.
Definition: kalman.h:63
double fullspeed_error(void) const
An estimate of the error in reference speed.
Definition: kalman.h:68
void reset_angle(double ang)
Set the current estimate of the angle.
Definition: kalman.cpp:78
double fullspeed_pos(void) const
The current estimate of the reference/maximum speed, when driven in the positive direction.
Definition: kalman.h:61
double angle(void) const
The current estimate of the angle.
Definition: kalman.h:59
A one-dimensional Kalman filter, which has as its state variables position, measured in radians from ...
Definition: kalman.h:16
Kalman()
No-arg constructor.
Definition: kalman.cpp:65