|
APM:Libraries
|
#include <AC_PrecLand.h>
Classes | |
| struct | inertial_data_frame_s |
| struct | precland_state |
Public Member Functions | |
| AC_PrecLand (const AP_AHRS_NavEKF &ahrs) | |
| AC_PrecLand (const AC_PrecLand &other)=delete | |
| AC_PrecLand & | operator= (const AC_PrecLand &)=delete |
| void | init () |
| bool | healthy () const |
| bool | enabled () const |
| uint32_t | last_update_ms () const |
| void | update (float rangefinder_alt_cm, bool rangefinder_alt_valid) |
| bool | get_target_position_cm (Vector2f &ret) |
| bool | get_target_position_relative_cm (Vector2f &ret) |
| bool | get_target_velocity_relative_cms (Vector2f &ret) |
| bool | target_acquired () |
| void | handle_msg (mavlink_message_t *msg) |
Static Public Attributes | |
| static const struct AP_Param::GroupInfo | var_info [] |
Private Types | |
| enum | estimator_type_t { ESTIMATOR_TYPE_RAW_SENSOR = 0, ESTIMATOR_TYPE_KALMAN_FILTER = 1 } |
Private Member Functions | |
| enum PrecLandBehaviour | get_behaviour () const |
| void | run_estimator (float rangefinder_alt_m, bool rangefinder_alt_valid) |
| bool | construct_pos_meas_using_rangefinder (float rangefinder_alt_m, bool rangefinder_alt_valid) |
| bool | retrieve_los_meas (Vector3f &target_vec_unit_body) |
| void | run_output_prediction () |
Private Attributes | |
| const AP_AHRS_NavEKF & | _ahrs |
| AP_Int8 | _enabled |
| AP_Int8 | _type |
| AP_Int8 | _bus |
| AP_Int8 | _estimator_type |
| AP_Float | _yaw_align |
| AP_Float | _land_ofs_cm_x |
| AP_Float | _land_ofs_cm_y |
| AP_Float | _accel_noise |
| AP_Vector3f | _cam_offset |
| uint32_t | _last_update_ms |
| bool | _target_acquired |
| uint32_t | _last_backend_los_meas_ms |
| PosVelEKF | _ekf_x |
| PosVelEKF | _ekf_y |
| uint32_t | _outlier_reject_count |
| Vector3f | _target_pos_rel_meas_NED |
| Vector2f | _target_pos_rel_est_NE |
| Vector2f | _target_vel_rel_est_NE |
| Vector2f | _target_pos_rel_out_NE |
| Vector2f | _target_vel_rel_out_NE |
| AP_Buffer< inertial_data_frame_s, 8 > | _inertial_history |
| struct AC_PrecLand::precland_state | _backend_state |
| AC_PrecLand_Backend * | _backend |
Friends | |
| class | AC_PrecLand_Backend |
| class | AC_PrecLand_Companion |
| class | AC_PrecLand_IRLock |
| class | AC_PrecLand_SITL_Gazebo |
| class | AC_PrecLand_SITL |
Definition at line 18 of file AC_PrecLand.h.
|
private |
| Enumerator | |
|---|---|
| ESTIMATOR_TYPE_RAW_SENSOR | |
| ESTIMATOR_TYPE_KALMAN_FILTER | |
Definition at line 84 of file AC_PrecLand.h.
| Enumerator | |
|---|---|
| PRECLAND_BEHAVIOUR_DISABLED | |
| PRECLAND_BEHAVIOR_ALWAYSLAND | |
| PRECLAND_BEHAVIOR_CAUTIOUS | |
Definition at line 35 of file AC_PrecLand.h.
| Enumerator | |
|---|---|
| PRECLAND_TYPE_NONE | |
| PRECLAND_TYPE_COMPANION | |
| PRECLAND_TYPE_IRLOCK | |
| PRECLAND_TYPE_SITL_GAZEBO | |
| PRECLAND_TYPE_SITL | |
Definition at line 42 of file AC_PrecLand.h.
| AC_PrecLand::AC_PrecLand | ( | const AP_AHRS_NavEKF & | ahrs | ) |
|
delete |
|
private |
Definition at line 348 of file AC_PrecLand.cpp.
Referenced by get_behaviour(), and run_estimator().
|
inline |
Definition at line 57 of file AC_PrecLand.h.
|
inlineprivate |
| bool AC_PrecLand::get_target_position_cm | ( | Vector2f & | ret | ) |
Definition at line 188 of file AC_PrecLand.cpp.
Referenced by last_update_ms().
| bool AC_PrecLand::get_target_position_relative_cm | ( | Vector2f & | ret | ) |
Definition at line 202 of file AC_PrecLand.cpp.
Referenced by last_update_ms().
| bool AC_PrecLand::get_target_velocity_relative_cms | ( | Vector2f & | ret | ) |
Definition at line 211 of file AC_PrecLand.cpp.
Referenced by last_update_ms().
| void AC_PrecLand::handle_msg | ( | mavlink_message_t * | msg | ) |
Definition at line 221 of file AC_PrecLand.cpp.
Referenced by last_update_ms().
|
inline |
Definition at line 54 of file AC_PrecLand.h.
| void AC_PrecLand::init | ( | ) |
|
inline |
|
delete |
|
private |
Definition at line 326 of file AC_PrecLand.cpp.
Referenced by construct_pos_meas_using_rangefinder(), and get_behaviour().
|
private |
Definition at line 233 of file AC_PrecLand.cpp.
Referenced by get_behaviour(), and update().
|
private |
Definition at line 379 of file AC_PrecLand.cpp.
Referenced by get_behaviour(), and run_estimator().
| bool AC_PrecLand::target_acquired | ( | ) |
Definition at line 182 of file AC_PrecLand.cpp.
Referenced by get_target_position_cm(), get_target_position_relative_cm(), get_target_velocity_relative_cms(), last_update_ms(), and run_estimator().
| void AC_PrecLand::update | ( | float | rangefinder_alt_cm, |
| bool | rangefinder_alt_valid | ||
| ) |
Definition at line 157 of file AC_PrecLand.cpp.
Referenced by last_update_ms().
|
friend |
Definition at line 21 of file AC_PrecLand.h.
|
friend |
Definition at line 22 of file AC_PrecLand.h.
Referenced by init().
|
friend |
Definition at line 23 of file AC_PrecLand.h.
Referenced by init().
|
friend |
Definition at line 25 of file AC_PrecLand.h.
Referenced by init().
|
friend |
Definition at line 24 of file AC_PrecLand.h.
Referenced by init().
|
private |
Definition at line 116 of file AC_PrecLand.h.
Referenced by run_estimator().
|
private |
Definition at line 106 of file AC_PrecLand.h.
Referenced by construct_pos_meas_using_rangefinder(), get_target_position_cm(), run_estimator(), run_output_prediction(), AC_PrecLand_SITL::update(), and update().
|
private |
Definition at line 148 of file AC_PrecLand.h.
Referenced by construct_pos_meas_using_rangefinder(), handle_msg(), init(), retrieve_los_meas(), and update().
|
private |
Referenced by AC_PrecLand(), healthy(), and init().
|
private |
Definition at line 111 of file AC_PrecLand.h.
Referenced by AC_PrecLand_Backend::get_bus().
|
private |
Definition at line 117 of file AC_PrecLand.h.
Referenced by construct_pos_meas_using_rangefinder(), and run_output_prediction().
|
private |
Definition at line 123 of file AC_PrecLand.h.
Referenced by run_estimator().
|
private |
Definition at line 123 of file AC_PrecLand.h.
Referenced by run_estimator().
|
private |
Definition at line 109 of file AC_PrecLand.h.
Referenced by enabled(), get_behaviour(), and update().
|
private |
Definition at line 112 of file AC_PrecLand.h.
Referenced by run_estimator().
|
private |
Definition at line 142 of file AC_PrecLand.h.
Referenced by construct_pos_meas_using_rangefinder(), run_estimator(), run_output_prediction(), and update().
|
private |
Definition at line 114 of file AC_PrecLand.h.
Referenced by run_output_prediction().
|
private |
Definition at line 115 of file AC_PrecLand.h.
Referenced by run_output_prediction().
|
private |
Definition at line 121 of file AC_PrecLand.h.
Referenced by retrieve_los_meas().
|
private |
Definition at line 119 of file AC_PrecLand.h.
Referenced by last_update_ms(), run_estimator(), and target_acquired().
|
private |
Definition at line 124 of file AC_PrecLand.h.
Referenced by run_estimator().
|
private |
Definition at line 120 of file AC_PrecLand.h.
Referenced by run_estimator(), and target_acquired().
|
private |
Definition at line 128 of file AC_PrecLand.h.
Referenced by run_estimator(), and run_output_prediction().
|
private |
Definition at line 126 of file AC_PrecLand.h.
Referenced by construct_pos_meas_using_rangefinder(), and run_estimator().
|
private |
Definition at line 131 of file AC_PrecLand.h.
Referenced by get_target_position_cm(), get_target_position_relative_cm(), and run_output_prediction().
|
private |
Definition at line 129 of file AC_PrecLand.h.
Referenced by run_estimator(), and run_output_prediction().
|
private |
Definition at line 132 of file AC_PrecLand.h.
Referenced by get_target_velocity_relative_cms(), and run_output_prediction().
|
private |
Definition at line 110 of file AC_PrecLand.h.
Referenced by init().
|
private |
Definition at line 113 of file AC_PrecLand.h.
Referenced by retrieve_los_meas().
|
static |
Definition at line 81 of file AC_PrecLand.h.
Referenced by AC_PrecLand().
1.8.13