67 bool landDetected =
false;
75 if (PX4_ISFINITE(val)) {
82 if (PX4_ISFINITE(val)) {
91 const float acc_hor = sqrtf(accel(0) * accel(0) + accel(1) * accel(1));
virtual void _update_topics()
Updates subscribed uORB topics.
vehicle_local_position_s _vehicle_local_position
uORB::Subscription _airspeed_sub
actuator_armed_s _actuator_armed
Land detector implementation for fixedwing.
void _update_topics() override
Updates subscribed uORB topics.
vehicle_acceleration_s _vehicle_acceleration
static hrt_abstime hrt_elapsed_time(const hrt_abstime *then)
Compute the delta between a timestamp taken in the past and now.
float _velocity_z_filtered
void set_hysteresis_time_from(const bool from_state, const hrt_abstime new_hysteresis_time_us)
float _velocity_xy_filtered
static constexpr hrt_abstime FLYING_TRIGGER_TIME_US
bool update(void *dst)
Update the struct.
static constexpr hrt_abstime LANDED_TRIGGER_TIME_US
Time in us that landing conditions have to hold before triggering a land.
systemlib::Hysteresis _landed_hysteresis
bool _get_landed_state() override