|
APM:Libraries
|
#include <AP_Follow.h>
Public Types | |
| enum | YawBehave { YAW_BEHAVE_NONE = 0, YAW_BEHAVE_FACE_LEAD_VEHICLE = 1, YAW_BEHAVE_SAME_AS_LEAD_VEHICLE = 2, YAW_BEHAVE_DIR_OF_FLIGHT = 3 } |
Public Member Functions | |
| AP_Follow () | |
| void | set_target_sysid (uint8_t sysid) |
| bool | have_target () const |
| bool | get_target_location_and_velocity (Location &loc, Vector3f &vel_ned) const |
| bool | get_target_dist_and_vel_ned (Vector3f &dist_ned, Vector3f &dist_with_ofs, Vector3f &vel_ned) |
| const AC_P & | get_pos_p () const |
| YawBehave | get_yaw_behave () const |
| bool | get_target_heading (float &heading) const |
| void | handle_msg (const mavlink_message_t &msg) |
| bool | enabled () const |
Static Public Attributes | |
| static const struct AP_Param::GroupInfo | var_info [] |
Private Member Functions | |
| bool | get_velocity_ned (Vector3f &vel_ned, float dt) const |
| void | init_offsets_if_required (const Vector3f &dist_vec_ned) |
| bool | get_offsets_ned (Vector3f &offsets) const |
Private Attributes | |
| AP_Int8 | _enabled |
| AP_Int16 | _sysid |
| AP_Float | _dist_max |
| AP_Int8 | _offset_type |
| AP_Vector3f | _offset |
| AP_Int8 | _yaw_behave |
| AC_P | _p_pos |
| bool | _healthy |
| uint8_t | _sysid_to_follow = 0 |
| uint32_t | _last_location_update_ms |
| Location | _target_location |
| Vector3f | _target_velocity_ned |
| Vector3f | _target_accel_ned |
| uint32_t | _last_heading_update_ms |
| float | _target_heading |
| uint32_t | _last_location_sent_to_gcs |
Definition at line 25 of file AP_Follow.h.
| enum AP_Follow::YawBehave |
| Enumerator | |
|---|---|
| YAW_BEHAVE_NONE | |
| YAW_BEHAVE_FACE_LEAD_VEHICLE | |
| YAW_BEHAVE_SAME_AS_LEAD_VEHICLE | |
| YAW_BEHAVE_DIR_OF_FLIGHT | |
Definition at line 31 of file AP_Follow.h.
| AP_Follow::AP_Follow | ( | ) |
|
inline |
|
private |
Definition at line 315 of file AP_Follow.cpp.
Referenced by enabled(), and get_target_dist_and_vel_ned().
|
inline |
Definition at line 58 of file AP_Follow.h.
| bool AP_Follow::get_target_dist_and_vel_ned | ( | Vector3f & | dist_ned, |
| Vector3f & | dist_with_ofs, | ||
| Vector3f & | vel_ned | ||
| ) |
Definition at line 156 of file AP_Follow.cpp.
Referenced by set_target_sysid().
| bool AP_Follow::get_target_heading | ( | float & | heading | ) | const |
Definition at line 196 of file AP_Follow.cpp.
Referenced by get_yaw_behave().
Definition at line 125 of file AP_Follow.cpp.
Referenced by get_target_dist_and_vel_ned(), handle_msg(), and set_target_sysid().
|
private |
Definition at line 300 of file AP_Follow.cpp.
Referenced by enabled(), and get_target_location_and_velocity().
|
inline |
| void AP_Follow::handle_msg | ( | const mavlink_message_t & | msg | ) |
Definition at line 214 of file AP_Follow.cpp.
Referenced by get_yaw_behave().
| bool AP_Follow::have_target | ( | ) | const |
|
private |
Definition at line 307 of file AP_Follow.cpp.
Referenced by enabled(), and get_target_dist_and_vel_ned().
|
inline |
|
private |
Definition at line 93 of file AP_Follow.h.
Referenced by get_target_dist_and_vel_ned().
|
private |
Definition at line 91 of file AP_Follow.h.
Referenced by enabled(), get_target_heading(), get_target_location_and_velocity(), and handle_msg().
|
private |
Definition at line 100 of file AP_Follow.h.
|
private |
Definition at line 106 of file AP_Follow.h.
Referenced by get_offsets_ned(), get_target_heading(), and handle_msg().
|
private |
Definition at line 108 of file AP_Follow.h.
Referenced by handle_msg().
|
private |
Definition at line 102 of file AP_Follow.h.
Referenced by get_target_location_and_velocity(), and handle_msg().
|
private |
Definition at line 95 of file AP_Follow.h.
Referenced by get_offsets_ned(), and init_offsets_if_required().
|
private |
Definition at line 94 of file AP_Follow.h.
Referenced by get_offsets_ned().
|
private |
Definition at line 97 of file AP_Follow.h.
Referenced by get_pos_p().
|
private |
Definition at line 92 of file AP_Follow.h.
Referenced by AP_Follow(), handle_msg(), and set_target_sysid().
|
private |
Definition at line 101 of file AP_Follow.h.
Referenced by AP_Follow(), and handle_msg().
|
private |
Definition at line 105 of file AP_Follow.h.
Referenced by get_velocity_ned().
|
private |
Definition at line 107 of file AP_Follow.h.
Referenced by get_offsets_ned(), get_target_heading(), and handle_msg().
|
private |
Definition at line 103 of file AP_Follow.h.
Referenced by get_target_location_and_velocity(), and handle_msg().
|
private |
Definition at line 104 of file AP_Follow.h.
Referenced by get_velocity_ned(), and handle_msg().
|
private |
Definition at line 96 of file AP_Follow.h.
Referenced by get_yaw_behave().
|
static |
Definition at line 74 of file AP_Follow.h.
Referenced by AP_Follow().
1.8.13