113 static bool checkInnovFailed(
float innov,
float innov_lpf,
float test_limit);
127 static constexpr
float sq(
float var) {
return var * var; }
bool _has_vert_vel_failed
bool hasHeightFailed() const
void setUsingFlowAiding(bool val)
bool _is_using_ev_pos_aiding
static constexpr float _innov_lpf_tau_inv
static bool checkInnovFailed(float innov, float innov_lpf, float test_limit)
InnovationLpf _filter_heading_innov
Preflight low pass filter heading innovation magntitude (rad)
~PreFlightChecker()=default
InnovationLpf _filter_vel_d_innov
Preflight low pass filter D axis velocity innovations (m/sec)
bool _is_using_flow_aiding
float selectHeadingTestLimit()
InnovationLpf _filter_flow_x_innov
Preflight low pass filter optical flow innovation (rad)
bool _can_observe_heading_in_flight
void setUsingGpsAiding(bool val)
void update(float dt, const ekf2_innovations_s &innov)
InnovationLpf _filter_flow_y_innov
Preflight low pass filter optical flow innovation (rad)
static constexpr float _flow_innov_spike_lim
void resetPreFlightChecks()
static constexpr float _hgt_innov_test_lim
bool hasHorizVelFailed() const
bool preFlightCheckHorizVelFailed(const ekf2_innovations_s &innov, float alpha)
bool _has_horiz_vel_failed
Vector2< float > Vector2f
First order "alpha" IIR digital filter with input saturation.
bool hasHorizFailed() const
static constexpr float sq(float var)
bool preFlightCheckVertVelFailed(const ekf2_innovations_s &innov, float alpha)
InnovationLpf _filter_hgt_innov
Preflight low pass filter height innovation (m)
bool preFlightCheckHeightFailed(const ekf2_innovations_s &innov, float alpha)
PreFlightChecker()=default
static constexpr float _vel_innov_test_lim
static constexpr float _heading_innov_test_lim
void setVehicleCanObserveHeadingInFlight(bool val)
static constexpr float _vel_innov_spike_lim
bool hasVertFailed() const
static constexpr float _flow_innov_test_lim
static bool checkInnov2DFailed(const Vector2f &innov, const Vector2f &innov_lpf, float test_limit)
void setUsingEvPosAiding(bool val)
InnovationLpf _filter_vel_e_innov
Preflight low pass filter E axis velocity innovations (m/sec)
static constexpr float _hgt_innov_spike_lim
bool preFlightCheckHeadingFailed(const ekf2_innovations_s &innov, float alpha)
InnovationLpf _filter_vel_n_innov
Preflight low pass filter N axis velocity innovations (m/sec)
bool hasVertVelFailed() const
bool hasHeadingFailed() const
static constexpr float _nav_heading_innov_test_lim
bool _is_using_gps_aiding