mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 14:03:34 +08:00
LPE alt init now allows baro only init without GPS w/o changing flag. (#5398)
Flight test went well, merging.
This commit is contained in:
@@ -29,8 +29,7 @@ void BlockLocalPositionEstimator::baroInit()
|
||||
_baroInitialized = true;
|
||||
_baroFault = FAULT_NONE;
|
||||
|
||||
// only initialize alt origin with baro and no gps
|
||||
if (!_altOriginInitialized && !_gps_on.get()) {
|
||||
if (!_altOriginInitialized) {
|
||||
_altOriginInitialized = true;
|
||||
_altOrigin = _baroAltOrigin;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user