mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
EKF: fix compilation error when CONFIG_EKF2_TERRAIN is not defined
This commit is contained in:
parent
a0560d2d82
commit
2065f577d6
@ -232,6 +232,7 @@ void Ekf::updateVerticalPositionResetStatus(const float delta_z)
|
||||
_state_reset_status.reset_count.posD++;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_EKF2_TERRAIN)
|
||||
void Ekf::updateTerrainResetStatus(const float delta_z)
|
||||
{
|
||||
if (_state_reset_status.reset_count.hagl == _state_reset_count_prev.hagl) {
|
||||
@ -244,6 +245,7 @@ void Ekf::updateTerrainResetStatus(const float delta_z)
|
||||
|
||||
_state_reset_status.reset_count.hagl++;
|
||||
}
|
||||
#endif // CONFIG_EKF2_TERRAIN
|
||||
|
||||
void Ekf::resetHorizontalPositionToLastKnown()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user