|
HoloLib
High-performance holonomic (X-Drive) control library for VEX V5
|
Standard 1D Kalman filter for smoothing raw motor encoder values. More...
#include <encoder_filter.h>
Public Member Functions | |
| EncoderKalmanFilter (float process_noise=0.077f, float measurement_noise=7.2f) | |
| Construct an Encoder Kalman Filter. | |
| float | update (float measured_position, float dt) |
| Updates the filter with a new measurement. | |
Standard 1D Kalman filter for smoothing raw motor encoder values.
Definition at line 9 of file encoder_filter.h.
| EncoderKalmanFilter::EncoderKalmanFilter | ( | float | process_noise = 0.077f, |
| float | measurement_noise = 7.2f |
||
| ) |
Construct an Encoder Kalman Filter.
| process_noise | Estimated variability of the process. |
| measurement_noise | Noise characteristics of the encoder. |
| float EncoderKalmanFilter::update | ( | float | measured_position, |
| float | dt | ||
| ) |
Updates the filter with a new measurement.
| measured_position | The raw encoder position. |
| dt | Time elapsed since last update. |