|
| | kalman_filter () |
| |
| void | estimate () |
| |
| void | correct () |
| |
| mtx_t< double, state_d, state_d > | F |
| |
| mtx_t< double, measure_d, state_d > | H |
| | state transition model
|
| |
| mtx_t< double, state_d, control_d > | B |
| | observation model
|
| |
| mtx_t< double, state_d, state_d > | Q |
| | control matrix
|
| |
| mtx_t< double, measure_d, measure_d > | R |
| | process noise covariance
|
| |
| mtx_t< double, control_d, 1 > | Uk |
| | observation noise covariance
|
| |
| mtx_t< double, measure_d, 1 > | Zk |
| | control vector
|
| |
| mtx_t< double, state_d, 1 > | Xk_km1 |
| | actual measured values vector
|
| |
| mtx_t< double, state_d, state_d > | Pk_km1 |
| | predicted state estimate
|
| |
| mtx_t< double, measure_d, 1 > | Yk |
| | predicted estimate covariance
|
| |
| mtx_t< double, measure_d, measure_d > | Sk |
| | measurement innovation
|
| |
| mtx_t< double, state_d, measure_d > | K |
| | innovation covariance
|
| |
| mtx_t< double, state_d, 1 > | Xk_k |
| | Kalman gain.
|
| |
| mtx_t< double, measure_d, 1 > | Yk_k |
| | updated (current) state
|
| |
| mtx_t< double, state_d, state_d > | Pk_k |
| | post fit residual
|
| |
| mtx_t< double, state_d, state_d > | I |
| | updated estimate covariance
|
| |
gps_acc_fusion_filter - Kalman filter implementation for GPS and accelerometer fusion
- Template Parameters
-
| state_d | Dimension of state vector (number of state variables) |
| measure_d | Dimension of measurement vector (number of measurements) |
| control_d | Dimension of control vector (number of control inputs) |
Specialized Kalman filter for fusing GPS position data with accelerometer measurements to estimate 2D position and velocity. Uses kalman_filter<4, 4, 2> configuration:
State Vector (4D): [X, Y, X', Y']
- X, Y: Position coordinates (East, North) in meters
- X', Y': Velocity components (East, North) in m/s
Measurement Vector (4D): [GPS_X, GPS_Y, GPS_VX, GPS_VY]
- GPS position and velocity measurements
Control Vector (2D): [ACC_X, ACC_Y]
- Accelerometer measurements (East, North acceleration)
This filter provides improved position and velocity estimation by combining the absolute positioning from GPS with the high-frequency acceleration data, resulting in smoother tracking with reduced GPS noise and better dynamics.