Skip to content
Snippets Groups Projects
Commit 6211285a authored by Davide Mor's avatar Davide Mor
Browse files

[ADA] Exposed a couple of functions required for properly correcting pressure data

parent 1c4f1de8
No related branches found
No related tags found
1 merge request!292[ADA] Exposed a couple of functions required for properly correcting pressure data
Pipeline #9391 passed
......@@ -44,6 +44,15 @@ void ADA::update(const float pressure)
updateState();
}
void ADA::update()
{
// Update the Kalman filter
filter.predict();
// Convert filter data to altitudes and speeds
updateState();
}
ADAState ADA::getState() { return state; }
void ADA::setReferenceValues(const ReferenceValues reference)
......
......@@ -44,6 +44,11 @@ public:
*/
void update(const float pressure);
/**
* @brief Update the Kalman filter, skipping the correct step.
*/
void update();
/**
* @param state ADA state with altitude and Kalman parameters.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment