mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 14:50:34 +08:00
ekf2: add fake height fusion logic
When there is no vertical aiding, fake height is started to constrain the vertical channel of the EKF
This commit is contained in:
@@ -584,6 +584,11 @@ int EstimatorInterface::getNumberOfActiveVerticalPositionAidingSources() const
|
||||
+ int(_control_status.flags.ev_hgt);
|
||||
}
|
||||
|
||||
bool EstimatorInterface::isVerticalAidingActive() const
|
||||
{
|
||||
return isVerticalPositionAidingActive() || isVerticalVelocityAidingActive();
|
||||
}
|
||||
|
||||
bool EstimatorInterface::isVerticalVelocityAidingActive() const
|
||||
{
|
||||
return getNumberOfActiveVerticalVelocityAidingSources() > 0;
|
||||
|
||||
Reference in New Issue
Block a user