mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 19:32:19 +08:00
EKF: fix compilation error when CONFIG_EKF2_TERRAIN is not defined
This commit is contained in:
committed by
Alex Klimaj
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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user