mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 08:23:35 +08:00
EKF2: reset global position using variance
This commit is contained in:
committed by
Mathieu Bresciani
parent
6b637f82f8
commit
8626019ae0
@@ -383,7 +383,7 @@ TEST_F(EkfFlowTest, deadReckoning)
|
||||
const float altitude_new = 1500.0;
|
||||
const float eph = 50.f;
|
||||
const float epv = 10.f;
|
||||
_ekf->setEkfGlobalOrigin(latitude_new, longitude_new, altitude_new, eph, epv);
|
||||
_ekf->setEkfGlobalOrigin(latitude_new, longitude_new, altitude_new, eph * eph, epv * epv);
|
||||
|
||||
const Vector3f lpos_after_reset = _ekf->getPosition();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user