mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 04:03:34 +08:00
initialise vertical position correctly
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ void Ekf::resetPosition()
|
||||
}
|
||||
|
||||
baroSample baro_newest = _baro_buffer.get_newest();
|
||||
_state.pos(2) = baro_newest.hgt;
|
||||
_state.pos(2) = -baro_newest.hgt;
|
||||
}
|
||||
|
||||
#if defined(__PX4_POSIX) && !defined(__PX4_QURT)
|
||||
|
||||
Reference in New Issue
Block a user