mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 07:23:35 +08:00
lpe: fix incorrect setting of local_position.z_global
This commit is contained in:
committed by
Lorenz Meier
parent
8d89e5e40b
commit
b5be990109
@@ -48,6 +48,7 @@ void BlockLocalPositionEstimator::visionInit()
|
||||
|
||||
if (!_altOriginInitialized) {
|
||||
_altOriginInitialized = true;
|
||||
_altOriginGlobal = true;
|
||||
_altOrigin = _sub_vision_pos.get().z_global ? _sub_vision_pos.get().ref_alt : 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user