mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 09:43:35 +08:00
Add more GPS checks for LPE (#4750)
* Added more GPS checks for LPE. * Add logic to force GPS alt init.
This commit is contained in:
@@ -29,7 +29,8 @@ void BlockLocalPositionEstimator::baroInit()
|
||||
_baroInitialized = true;
|
||||
_baroFault = FAULT_NONE;
|
||||
|
||||
if (!_altHomeInitialized) {
|
||||
// only initialize alt home with baro if gps is disabled
|
||||
if (!_altHomeInitialized && !_gps_on.get()) {
|
||||
_altHomeInitialized = true;
|
||||
_altHome = _baroAltHome;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user