mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 07:23:35 +08:00
ekf2: default to in air and not at rest
- this is a more conservative default if a vehicle isn't set (no land detector running) - handled horizontal preflight failures in commander when disarmed rather than overloading xy_valid and v_xy_valid flags - ekf2 no longer depend on arming or standby status
This commit is contained in:
@@ -82,8 +82,6 @@ void Ekf::reset()
|
||||
|
||||
_prev_dvel_bias_var.zero();
|
||||
|
||||
_control_status.flags.vehicle_at_rest = true;
|
||||
|
||||
resetGpsDriftCheckFilters();
|
||||
}
|
||||
|
||||
|
||||
@@ -258,7 +258,12 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
EstimatorInterface() = default;
|
||||
EstimatorInterface()
|
||||
{
|
||||
_control_status.flags.in_air = true;
|
||||
_control_status.flags.vehicle_at_rest = false;
|
||||
};
|
||||
|
||||
virtual ~EstimatorInterface();
|
||||
|
||||
virtual bool init(uint64_t timestamp) = 0;
|
||||
|
||||
Reference in New Issue
Block a user