reset gps height use vacc

This commit is contained in:
zhaoxiaowei 2020-12-09 11:39:24 +08:00 committed by Mathieu Bresciani
parent 8f3df7a97b
commit fbf67bdef9

View File

@ -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;