66 void _update_params()
override;
67 void _update_topics()
override;
69 bool _get_landed_state()
override;
70 bool _get_ground_contact_state()
override;
71 bool _get_maybe_landed_state()
override;
72 bool _get_freefall_state()
override;
73 bool _get_ground_effect_state()
override;
75 float _get_max_altitude()
override;
79 float _get_takeoff_throttle();
81 bool _has_low_thrust();
82 bool _has_minimal_thrust();
83 bool _has_altitude_lock();
84 bool _has_position_lock();
85 bool _is_climb_rate_enabled();
88 static constexpr
hrt_abstime LAND_DETECTOR_TRIGGER_TIME_US = 300_ms;
91 static constexpr
hrt_abstime MAYBE_LAND_DETECTOR_TRIGGER_TIME_US = 250_ms;
94 static constexpr
hrt_abstime GROUND_CONTACT_TRIGGER_TIME_US = 350_ms;
97 static constexpr
hrt_abstime LAND_DETECTOR_LAND_PHASE_TIME_US = 2_s;
131 bool _in_descend{
false};
132 bool _horizontal_movement{
false};
134 DEFINE_PARAMETERS_CUSTOM_PARENT(
136 (ParamFloat<px4::params::LNDMC_ALT_MAX>) _param_lndmc_alt_max,
137 (ParamFloat<px4::params::LNDMC_FFALL_THR>) _param_lndmc_ffall_thr,
138 (ParamFloat<px4::params::LNDMC_FFALL_TTRI>) _param_lndmc_ffall_ttri,
139 (ParamFloat<px4::params::LNDMC_LOW_T_THR>) _param_lndmc_low_t_thr,
140 (ParamFloat<px4::params::LNDMC_ROT_MAX>) _param_lndmc_rot_max,
141 (ParamFloat<px4::params::LNDMC_XY_VEL_MAX>) _param_lndmc_xy_vel_max,
142 (ParamFloat<px4::params::LNDMC_Z_VEL_MAX>) _param_lndmc_z_vel_max
#define ORB_ID(_name)
Generates a pointer to the uORB metadata structure for a given topic.
__BEGIN_DECLS typedef uint64_t hrt_abstime
Absolute time, in microsecond units.
Land detector interface for multicopter, fixedwing and VTOL implementations.
uint32_t param_t
Parameter handle.