mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-07 14:58:53 +08:00
reset gps height use vacc
This commit is contained in:
committed by
Mathieu Bresciani
parent
8f3df7a97b
commit
fbf67bdef9
+1
-1
@@ -271,7 +271,7 @@ void Ekf::resetHeight()
|
||||
_state.pos(2) = _hgt_sensor_offset - gps_newest.hgt + _gps_alt_ref;
|
||||
|
||||
// the state variance is the same as the observation
|
||||
P.uncorrelateCovarianceSetVariance<1>(9, sq(gps_newest.hacc));
|
||||
P.uncorrelateCovarianceSetVariance<1>(9, sq(gps_newest.vacc));
|
||||
|
||||
vert_pos_reset = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user