#include <DefaultObserver.h>
Inheritance diagram for DefaultObserver:
Public Member Functions | |
DefaultObserver () | |
DefaultObserver (Whorl *ptr_whorl) | |
~DefaultObserver () | |
int | Initialize () |
int | Run () |
Vector | AccelerationCorrection (Vector _angularAcceleration, Vector _angularRates, Vector _accelerationMeasurement, Vector _vectorCM) |
Correction of the accelerometer reading, so that it reads acceleration due to gravity only. In order to do this we calculate the acceleration due to rotation from the rate gyros adn subtract from the acceleration measurement. | |
Private Attributes | |
ExtendedKalmanFilter | ekf |
Whorl * | m_whorl |
map< string, RateGyro * > | m_rateGyros |
string | m_rateGyroNames [3] |
Measurement | m_measurements [3] |
|
Constructor Definition at line 30 of file DefaultObserver.h. |
|
Definition at line 31 of file DefaultObserver.h. References Initialize(), and m_whorl. |
|
Destructor Definition at line 38 of file DefaultObserver.h. |
|
Correction of the accelerometer reading, so that it reads acceleration due to gravity only. In order to do this we calculate the acceleration due to rotation from the rate gyros adn subtract from the acceleration measurement.
Definition at line 34 of file Observer.cpp. References O_SESSAME::skew(), and O_SESSAME::Vector. Referenced by triadObserver::Run(). |
|
Initialize the filter Implements Observer. Definition at line 23 of file DefaultObserver.cpp. References ekf, Euler_Fmatrix(), Euler_Hmatrix(), Euler_measurementRHSFunc(), Euler_Qmatrix(), Euler_Rmatrix(), Euler_stateRHSFunc(), O_SESSAME::Matrix, KalmanFilter::SetCovarianceMatrix(), KalmanFilter::SetKalmanGainMatrix(), KalmanFilter::SetMeasurementCovarianceMatrix(), KalmanFilter::SetMeasurementJacobianMatrix(), ExtendedKalmanFilter::SetMeasurementRHS(), KalmanFilter::SetStateJacobianMatrix(), ExtendedKalmanFilter::SetStateRHS(), and KalmanFilter::SetSystemProcessNoiseMatrix(). Referenced by DefaultObserver(), and main(). |
|
Run is the funtion that implements the estimator in the derived class Filter Implements Observer. Definition at line 51 of file DefaultObserver.cpp. References _, ekf, ExtendedKalmanFilter::EstimateState(), Measurement::GetAsDouble(), Whorl::GetControl(), Sensor::GetMeasurement(), Whorl::GetOmegaBL(), Whorl::GetParameter(), Whorl::GetRateGyro(), SequentialFilter::GetStateVector(), Measurement::GetTime(), Whorl::GetTimeOfEstimate(), m_measurements, m_whorl, SequentialFilter::SetControlVector(), SequentialFilter::SetMeasurementVector(), SequentialFilter::SetParameterVector(), Whorl::SetState(), SequentialFilter::SetStateVector(), Whorl::SetTimeOfEstimate(), SequentialFilter::SetTimeOfEstimate(), SequentialFilter::SetTimeOfMeasurements(), and O_SESSAME::Vector. Referenced by main(). |
|
Definition at line 54 of file DefaultObserver.h. Referenced by Initialize(), and Run(). |
|
Definition at line 58 of file DefaultObserver.h. Referenced by Run(). |
|
Definition at line 57 of file DefaultObserver.h. |
|
Definition at line 56 of file DefaultObserver.h. |
|
Definition at line 55 of file DefaultObserver.h. Referenced by DefaultObserver(), and Run(). |