45 #include <px4_platform_common/module_params.h> 73 void on_activation()
override;
74 void on_active()
override;
82 void updateParams()
override;
85 void run_state_start();
86 void run_state_horizontal_approach();
87 void run_state_descend_above_target();
88 void run_state_final_approach();
89 void run_state_search();
90 void run_state_fallback();
93 bool switch_to_state_start();
94 bool switch_to_state_horizontal_approach();
95 bool switch_to_state_descend_above_target();
96 bool switch_to_state_final_approach();
97 bool switch_to_state_search();
98 bool switch_to_state_fallback();
99 bool switch_to_state_done();
103 void slewrate(
float &sp_x,
float &sp_y);
108 bool _target_pose_valid{
false};
109 bool _target_pose_updated{
false};
113 uint64_t _state_start_time{0};
114 uint64_t _last_slewrate_time{0};
115 uint64_t _target_acquired_time{0};
116 uint64_t _point_reached_time{0};
119 float _approach_alt{0.0f};
129 (ParamFloat<px4::params::PLD_BTOUT>) _param_pld_btout,
130 (ParamFloat<px4::params::PLD_HACC_RAD>) _param_pld_hacc_rad,
131 (ParamFloat<px4::params::PLD_FAPPR_ALT>) _param_pld_fappr_alt,
132 (ParamFloat<px4::params::PLD_SRCH_ALT>) _param_pld_srch_alt,
133 (ParamFloat<px4::params::PLD_SRCH_TOUT>) _param_pld_srch_tout,
134 (ParamInt<px4::params::PLD_MAX_SRCH>) _param_pld_max_srch
140 float _param_acceleration_hor{0.0f};
141 float _param_xy_vel_cruise{0.0f};
#define PARAM_INVALID
Handle returned when a parameter cannot be found.
Definition of geo / math functions to perform geodesic calculations.
reference for local/global projections
Helper class to use mission items.
#define ORB_ID(_name)
Generates a pointer to the uORB metadata structure for a given topic.
matrix::Vector2f _sp_pev_prev
DEFINE_PARAMETERS((ParamFloat< px4::params::PLD_BTOUT >) _param_pld_btout,(ParamFloat< px4::params::PLD_HACC_RAD >) _param_pld_hacc_rad,(ParamFloat< px4::params::PLD_FAPPR_ALT >) _param_pld_fappr_alt,(ParamFloat< px4::params::PLD_SRCH_ALT >) _param_pld_srch_alt,(ParamFloat< px4::params::PLD_SRCH_TOUT >) _param_pld_srch_tout,(ParamInt< px4::params::PLD_MAX_SRCH >) _param_pld_max_srch) param_t _handle_param_acceleration_hor
Base class for different modes in navigator.
void set_mode(PrecLandMode mode)
uint32_t param_t
Parameter handle.