mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 12:51:36 +08:00
unit test: check that the accel bias is only learned when observable (#827)
This commit is contained in:
@@ -200,3 +200,8 @@ int EkfWrapper::getQuaternionResetCounter() const
|
||||
_ekf->get_quat_reset(tmp, &counter);
|
||||
return static_cast<int>(counter);
|
||||
}
|
||||
|
||||
matrix::Vector3f EkfWrapper::getDeltaVelBiasVariance() const
|
||||
{
|
||||
return _ekf->covariances_diagonal().slice<3, 1>(13,0);
|
||||
}
|
||||
|
||||
@@ -94,6 +94,8 @@ public:
|
||||
matrix::Vector<float, 4> getQuaternionVariance() const;
|
||||
int getQuaternionResetCounter() const;
|
||||
|
||||
matrix::Vector3f getDeltaVelBiasVariance() const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<Ekf> _ekf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user