mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +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++;
|
_state_reset_status.reset_count.posD++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_EKF2_TERRAIN)
|
||||||
void Ekf::updateTerrainResetStatus(const float delta_z)
|
void Ekf::updateTerrainResetStatus(const float delta_z)
|
||||||
{
|
{
|
||||||
if (_state_reset_status.reset_count.hagl == _state_reset_count_prev.hagl) {
|
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++;
|
_state_reset_status.reset_count.hagl++;
|
||||||
}
|
}
|
||||||
|
#endif // CONFIG_EKF2_TERRAIN
|
||||||
|
|
||||||
void Ekf::resetHorizontalPositionToLastKnown()
|
void Ekf::resetHorizontalPositionToLastKnown()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user