APM:Copter
|
Public Member Functions | |
bool | init (bool ignore_checks) override |
void | run () override |
void | run (bool disarm_on_land) |
bool | requires_GPS () const override |
bool | has_manual_throttle () const override |
bool | allows_arming (bool from_gcs) const override |
bool | is_autopilot () const override |
RTLState | state () |
bool | state_complete () |
bool | landing_gear_should_be_deployed () const override |
void | restart_without_terrain () |
Protected Member Functions | |
const char * | name () const override |
const char * | name4 () const override |
uint32_t | wp_distance () const override |
int32_t | wp_bearing () const override |
void | descent_start () |
void | descent_run () |
void | land_start () |
void | land_run (bool disarm_on_land) |
void | set_descent_target_alt (uint32_t alt) |
![]() | |
void | update_navigation () |
virtual void | run_autopilot () |
virtual bool | get_wp (Location_Class &loc) |
virtual bool | in_guided_mode () const |
void | get_pilot_desired_lean_angles (float &roll_out, float &pitch_out, float angle_max, float angle_limit) const |
bool | takeoff_triggered (float target_climb_rate) const |
void | zero_throttle_and_relax_ac () |
int32_t | get_alt_above_ground (void) |
void | land_run_horizontal_control () |
void | land_run_vertical_control (bool pause_descent=false) |
float | get_surface_tracking_climb_rate (int16_t target_rate, float current_alt_target, float dt) |
float | get_pilot_desired_yaw_rate (int16_t stick_angle) |
float | get_pilot_desired_climb_rate (float throttle_control) |
float | get_pilot_desired_throttle (int16_t throttle_control, float thr_mid=0.0f) |
float | get_non_takeoff_throttle (void) |
void | update_simple_mode (void) |
bool | set_mode (control_mode_t mode, mode_reason_t reason) |
void | set_land_complete (bool b) |
GCS_Copter & | gcs () |
void | Log_Write_Event (uint8_t id) |
void | set_throttle_takeoff (void) |
void | takeoff_timer_start (float alt_cm) |
void | takeoff_stop (void) |
void | takeoff_get_climb_rates (float &pilot_climb_rate, float &takeoff_climb_rate) |
float | get_avoidance_adjusted_climbrate (float target_rate) |
uint16_t | get_pilot_speed_dn (void) |
Private Member Functions | |
void | climb_start () |
void | return_start () |
void | climb_return_run () |
void | loiterathome_start () |
void | loiterathome_run () |
void | build_path (bool terrain_following_allowed) |
void | compute_return_target (bool terrain_following_allowed) |
Private Attributes | |
RTLState | _state = RTL_InitialClimb |
bool | _state_complete = false |
struct { | |
Location_Class origin_point | |
Location_Class climb_target | |
Location_Class return_target | |
Location_Class descent_target | |
bool land | |
bool terrain_used | |
} | rtl_path |
uint32_t | _loiter_start_time = 0 |
Additional Inherited Members | |
![]() | |
static AutoYaw | auto_yaw |
![]() | |
Parameters & | g |
ParametersG2 & | g2 |
AC_WPNav *& | wp_nav |
AC_Loiter *& | loiter_nav |
AC_PosControl *& | pos_control |
AP_InertialNav & | inertial_nav |
AP_AHRS & | ahrs |
AC_AttitudeControl_t *& | attitude_control |
MOTOR_CLASS *& | motors |
RC_Channel *& | channel_roll |
RC_Channel *& | channel_pitch |
RC_Channel *& | channel_throttle |
RC_Channel *& | channel_yaw |
float & | G_Dt |
ap_t & | ap |
takeoff_state_t & | takeoff_state |
float & | ekfGndSpdLimit |
float & | ekfNavVelGainScaler |
|
inlineoverridevirtual |
Implements Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
|
private |
Definition at line 381 of file mode_rtl.cpp.
Referenced by init(), and restart_without_terrain().
|
private |
Definition at line 131 of file mode_rtl.cpp.
Referenced by run().
|
private |
Definition at line 91 of file mode_rtl.cpp.
Referenced by init(), and restart_without_terrain().
|
private |
Definition at line 406 of file mode_rtl.cpp.
Referenced by build_path().
|
protected |
Definition at line 258 of file mode_rtl.cpp.
Referenced by run(), and Copter::ModeSmartRTL::run().
|
protected |
Definition at line 241 of file mode_rtl.cpp.
Referenced by Copter::ModeSmartRTL::pre_land_position_run(), and run().
|
inlineoverridevirtual |
Implements Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
|
overridevirtual |
Implements Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
Definition at line 11 of file mode_rtl.cpp.
|
inlineoverridevirtual |
Reimplemented from Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
|
protected |
Definition at line 353 of file mode_rtl.cpp.
Referenced by run(), and Copter::ModeSmartRTL::run().
|
protected |
Definition at line 320 of file mode_rtl.cpp.
Referenced by Copter::ModeSmartRTL::pre_land_position_run(), and run().
|
overridevirtual |
Reimplemented from Copter::Mode.
Definition at line 338 of file mode_rtl.cpp.
|
private |
Definition at line 189 of file mode_rtl.cpp.
Referenced by run().
|
private |
Definition at line 173 of file mode_rtl.cpp.
Referenced by run().
|
inlineoverrideprotectedvirtual |
Implements Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
|
inlineoverrideprotectedvirtual |
Implements Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
|
inlineoverridevirtual |
Implements Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
void Copter::ModeRTL::restart_without_terrain | ( | ) |
Definition at line 25 of file mode_rtl.cpp.
Referenced by Copter::failsafe_terrain_on_event(), and return_start().
|
private |
Definition at line 115 of file mode_rtl.cpp.
Referenced by run().
|
inlineoverridevirtual |
Implements Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
void Copter::ModeRTL::run | ( | bool | disarm_on_land | ) |
|
inlineprotected |
Definition at line 967 of file Copter.h.
Referenced by Copter::ModeSmartRTL::pre_land_position_run().
|
overrideprotectedvirtual |
Reimplemented from Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
Definition at line 486 of file mode_rtl.cpp.
|
overrideprotectedvirtual |
Reimplemented from Copter::Mode.
Reimplemented in Copter::ModeSmartRTL.
Definition at line 481 of file mode_rtl.cpp.
|
private |
Definition at line 994 of file Copter.h.
Referenced by loiterathome_run(), and loiterathome_start().
|
private |
Definition at line 980 of file Copter.h.
Referenced by climb_start(), descent_start(), land_start(), landing_gear_should_be_deployed(), loiterathome_start(), return_start(), and run().
|
private |
Definition at line 981 of file Copter.h.
Referenced by climb_return_run(), climb_start(), descent_run(), descent_start(), land_run(), land_start(), loiterathome_run(), loiterathome_start(), return_start(), and run().
Location_Class Copter::ModeRTL::climb_target |
Location_Class Copter::ModeRTL::descent_target |
Location_Class Copter::ModeRTL::origin_point |
Location_Class Copter::ModeRTL::return_target |
struct { ... } Copter::ModeRTL::rtl_path |
Referenced by build_path(), climb_start(), compute_return_target(), descent_run(), restart_without_terrain(), return_start(), and run().