mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ekf2: return validity based on dead-reckoning time only
This commit is contained in:
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user