mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 01:41:36 +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;
|
_state.pos(2) = _hgt_sensor_offset - gps_newest.hgt + _gps_alt_ref;
|
||||||
|
|
||||||
// the state variance is the same as the observation
|
// 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;
|
vert_pos_reset = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user