AP_NavEKF: Predict filter solution status
This commit is contained in:
parent
3896dadc77
commit
ffd9f7a4ed
@ -4503,8 +4503,8 @@ void NavEKF::getFilterStatus(nav_filter_status &status) const
|
||||
status.flags.vert_pos = !hgtTimeout; // vertical position estimate valid
|
||||
status.flags.terrain_alt = gndOffsetValid; // terrain height estimate valid
|
||||
status.flags.const_pos_mode = constPosMode; // constant position mode
|
||||
status.flags.pred_horiz_pos_rel = status.flags.horiz_pos_rel;
|
||||
status.flags.pred_horiz_pos_abs = status.flags.horiz_pos_abs;
|
||||
status.flags.pred_horiz_pos_rel = optFlowNavPossible || gpsNavPossible; // we should be able to estimate a relative position when we enter flight mode
|
||||
status.flags.pred_horiz_pos_abs = gpsNavPossible; // we should be able to estimate an absolute position when we enter flight mode
|
||||
}
|
||||
|
||||
// Check arm status and perform required checks and mode changes
|
||||
|
Loading…
Reference in New Issue
Block a user