|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <extended_kalman.hpp>
Public Member Functions | |
| ExtendedKalman (float tQ, float tR) | |
| float | filterData (float dat) |
| float | getLastFiltered () const |
| void | reset () |
The kalman filter can be used by instantiating an ExtendedKalman object and calling filterData.
Example source:
| tap::algorithms::ExtendedKalman::ExtendedKalman | ( | float | tQ, |
| float | tR | ||
| ) |
Initializes a kalman filter with the given covariances.
| [in] | tQ | the system noise covariance. |
| [in] | tR | the measurement noise covariance. |
| float tap::algorithms::ExtendedKalman::filterData | ( | float | dat | ) |
Runs the kalman filter, returning the current prediction.
is the current prediction (filtered output)
would be the previous output)
| [in] | dat | the value to be filtered. |
| float tap::algorithms::ExtendedKalman::getLastFiltered | ( | ) | const |
Returns the last filtered data point.
| void tap::algorithms::ExtendedKalman::reset | ( | ) |
Resets the covariances and predictions.