31ADA::ADA(
const KalmanFilter::KalmanConfig kalmanConfig)
32 : filter(kalmanConfig), state()
60 this->reference = reference;
70void ADA::updateState()
72 const auto filterState = filter.
getState();
75 state.
x0 = filterState(0);
76 state.
x1 = filterState(1);
77 state.
x2 = filterState(2);
83 filterState(0), filterState(1), reference.
mslPressure,
ReferenceValues getReferenceValues()
Returns the current reference values.
void setReferenceValues(const ReferenceValues reference)
Changes the reference values.
void setKalmanConfig(KalmanFilter::KalmanConfig config)
Changes the kalman filter configuration.
void update()
Update the Kalman filter, skipping the correct step.
ADA(const KalmanFilter::KalmanConfig kalmanConfig)
Eigen::Vector< float, P_size > CVectorP
void setConfig(const KalmanConfig &config)
const CVectorN getState()
bool correct(const CVectorP &y)
Correction step.
void predict()
Prediction step with previous F matrix.
float verticalSpeed(float p, float dpDt, float pRef, float tRef)
float relAltitude(float pressure, float pressureRef, float temperatureRef)
Returns the altitude given the pressure with respect to a reference pressure and temperature,...
uint64_t getTimestamp()
Returns the current timer value in microseconds.
This file includes all the types the logdecoder script will decode.
Reference values for the Apogee Detection Algorithm.