mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
reset gps height use vacc
This commit is contained in:
parent
8f3df7a97b
commit
fbf67bdef9
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user