ekf2: return validity based on dead-reckoning time only

This commit is contained in:
bresch 2024-08-19 10:29:01 +02:00 committed by Mathieu Bresciani
parent cf941b18df
commit 64b0586dad

View File

@ -294,17 +294,17 @@ public:
// return true if the local position estimate is valid
bool local_position_is_valid() const
{
return (!_horizontal_deadreckon_time_exceeded && !_control_status.flags.fake_pos);
return !_horizontal_deadreckon_time_exceeded;
}
bool isLocalVerticalPositionValid() const
{
return !_vertical_position_deadreckon_time_exceeded && !_control_status.flags.fake_hgt;
return !_vertical_position_deadreckon_time_exceeded;
}
bool isLocalVerticalVelocityValid() const
{
return !_vertical_velocity_deadreckon_time_exceeded && !_control_status.flags.fake_hgt;
return !_vertical_velocity_deadreckon_time_exceeded;
}
bool isYawFinalAlignComplete() const