mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 22:32:11 +08:00
ekf2: return validity based on dead-reckoning time only
This commit is contained in:
committed by
Mathieu Bresciani
parent
cf941b18df
commit
64b0586dad
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user