APM:Copter
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Copter::ModeAuto Class Reference
Inheritance diagram for Copter::ModeAuto:
[legend]
Collaboration diagram for Copter::ModeAuto:
[legend]

Public Member Functions

bool init (bool ignore_checks) override
 
void run () override
 
bool is_autopilot () const override
 
bool requires_GPS () const override
 
bool has_manual_throttle () const override
 
bool allows_arming (bool from_gcs) const override
 
bool in_guided_mode () const
 
AutoMode mode () const
 
bool loiter_start ()
 
void rtl_start ()
 
void takeoff_start (const Location &dest_loc)
 
void wp_start (const Vector3f &destination)
 
void wp_start (const Location_Class &dest_loc)
 
void land_start ()
 
void land_start (const Vector3f &destination)
 
void circle_movetoedge_start (const Location_Class &circle_center, float radius_m)
 
void circle_start ()
 
void spline_start (const Vector3f &destination, bool stopped_at_start, AC_WPNav::spline_segment_end_type seg_end_type, const Vector3f &next_spline_destination)
 
void spline_start (const Location_Class &destination, bool stopped_at_start, AC_WPNav::spline_segment_end_type seg_end_type, const Location_Class &next_destination)
 
void nav_guided_start ()
 
bool landing_gear_should_be_deployed () const override
 
void payload_place_start ()
 
bool start_command (const AP_Mission::Mission_Command &cmd)
 
bool verify_command_callback (const AP_Mission::Mission_Command &cmd)
 
void exit_mission ()
 
bool do_guided (const AP_Mission::Mission_Command &cmd)
 

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
 
bool get_wp (Location_Class &loc) override
 
void run_autopilot () override
 
- Protected Member Functions inherited from Copter::Mode
void update_navigation ()
 
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_Coptergcs ()
 
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

bool verify_command (const AP_Mission::Mission_Command &cmd)
 
void takeoff_run ()
 
void wp_run ()
 
void spline_run ()
 
void land_run ()
 
void rtl_run ()
 
void circle_run ()
 
void nav_guided_run ()
 
void loiter_run ()
 
void payload_place_start (const Vector3f &destination)
 
void payload_place_run ()
 
bool payload_place_run_should_run ()
 
void payload_place_run_loiter ()
 
void payload_place_run_descend ()
 
void payload_place_run_release ()
 
Location_Class terrain_adjusted_location (const AP_Mission::Mission_Command &cmd) const
 
void do_takeoff (const AP_Mission::Mission_Command &cmd)
 
void do_nav_wp (const AP_Mission::Mission_Command &cmd)
 
void do_land (const AP_Mission::Mission_Command &cmd)
 
void do_loiter_unlimited (const AP_Mission::Mission_Command &cmd)
 
void do_circle (const AP_Mission::Mission_Command &cmd)
 
void do_loiter_time (const AP_Mission::Mission_Command &cmd)
 
void do_spline_wp (const AP_Mission::Mission_Command &cmd)
 
void do_nav_guided_enable (const AP_Mission::Mission_Command &cmd)
 
void do_guided_limits (const AP_Mission::Mission_Command &cmd)
 
void do_nav_delay (const AP_Mission::Mission_Command &cmd)
 
void do_wait_delay (const AP_Mission::Mission_Command &cmd)
 
void do_within_distance (const AP_Mission::Mission_Command &cmd)
 
void do_yaw (const AP_Mission::Mission_Command &cmd)
 
void do_change_speed (const AP_Mission::Mission_Command &cmd)
 
void do_set_home (const AP_Mission::Mission_Command &cmd)
 
void do_roi (const AP_Mission::Mission_Command &cmd)
 
void do_mount_control (const AP_Mission::Mission_Command &cmd)
 
void do_digicam_configure (const AP_Mission::Mission_Command &cmd)
 
void do_digicam_control (const AP_Mission::Mission_Command &cmd)
 
void do_parachute (const AP_Mission::Mission_Command &cmd)
 
void do_gripper (const AP_Mission::Mission_Command &cmd)
 
void do_winch (const AP_Mission::Mission_Command &cmd)
 
void do_payload_place (const AP_Mission::Mission_Command &cmd)
 
void do_RTL (void)
 
bool verify_takeoff ()
 
bool verify_land ()
 
bool verify_payload_place ()
 
bool verify_loiter_unlimited ()
 
bool verify_loiter_time ()
 
bool verify_RTL ()
 
bool verify_wait_delay ()
 
bool verify_within_distance ()
 
bool verify_yaw ()
 
bool verify_nav_wp (const AP_Mission::Mission_Command &cmd)
 
bool verify_circle (const AP_Mission::Mission_Command &cmd)
 
bool verify_spline_wp (const AP_Mission::Mission_Command &cmd)
 
bool verify_nav_guided_enable (const AP_Mission::Mission_Command &cmd)
 
bool verify_nav_delay (const AP_Mission::Mission_Command &cmd)
 
void auto_spline_start (const Location_Class &destination, bool stopped_at_start, AC_WPNav::spline_segment_end_type seg_end_type, const Location_Class &next_destination)
 

Private Attributes

AutoMode _mode = Auto_TakeOff
 
uint16_t loiter_time_max
 
uint32_t loiter_time
 
int32_t nav_delay_time_max
 
uint32_t nav_delay_time_start
 
int32_t condition_value
 
uint32_t condition_start
 
LandStateType land_state = LandStateType_FlyToLocation
 
struct {
   PayloadPlaceStateType   state = PayloadPlaceStateType_Calibrating_Hover_Start
 
   uint32_t   hover_start_timestamp
 
   float   hover_throttle_level
 
   uint32_t   descend_start_timestamp
 
   uint32_t   place_start_timestamp
 
   float   descend_throttle_level
 
   float   descend_start_altitude
 
   float   descend_max
 
nav_payload_place
 

Additional Inherited Members

- Static Public Attributes inherited from Copter::Mode
static AutoYaw auto_yaw
 
- Protected Attributes inherited from Copter::Mode
Parametersg
 
ParametersG2g2
 
AC_WPNav *& wp_nav
 
AC_Loiter *& loiter_nav
 
AC_PosControl *& pos_control
 
AP_InertialNavinertial_nav
 
AP_AHRSahrs
 
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_tap
 
takeoff_state_ttakeoff_state
 
float & ekfGndSpdLimit
 
float & ekfNavVelGainScaler
 

Detailed Description

Definition at line 234 of file Copter.h.

Member Function Documentation

◆ allows_arming()

bool Copter::ModeAuto::allows_arming ( bool  from_gcs) const
inlineoverridevirtual

Implements Copter::Mode.

Definition at line 246 of file Copter.h.

◆ auto_spline_start()

void Copter::ModeAuto::auto_spline_start ( const Location_Class destination,
bool  stopped_at_start,
AC_WPNav::spline_segment_end_type  seg_end_type,
const Location_Class next_destination 
)
private

◆ circle_movetoedge_start()

void Copter::ModeAuto::circle_movetoedge_start ( const Location_Class circle_center,
float  radius_m 
)

Definition at line 247 of file mode_auto.cpp.

Referenced by do_circle().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ circle_run()

void Copter::ModeAuto::circle_run ( )
private

Definition at line 888 of file mode_auto.cpp.

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ circle_start()

void Copter::ModeAuto::circle_start ( )

Definition at line 301 of file mode_auto.cpp.

Referenced by circle_movetoedge_start(), and verify_circle().

Here is the caller graph for this function:

◆ do_change_speed()

void Copter::ModeAuto::do_change_speed ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1348 of file mode_auto.cpp.

Referenced by start_command().

Here is the caller graph for this function:

◆ do_circle()

void Copter::ModeAuto::do_circle ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1160 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_digicam_configure()

void Copter::ModeAuto::do_digicam_configure ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1387 of file mode_auto.cpp.

Referenced by start_command().

Here is the caller graph for this function:

◆ do_digicam_control()

void Copter::ModeAuto::do_digicam_control ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1400 of file mode_auto.cpp.

Referenced by start_command().

Here is the caller graph for this function:

◆ do_gripper()

void Copter::ModeAuto::do_gripper ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1437 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_guided()

bool Copter::ModeAuto::do_guided ( const AP_Mission::Mission_Command cmd)

Definition at line 580 of file mode_auto.cpp.

Here is the call graph for this function:

◆ do_guided_limits()

void Copter::ModeAuto::do_guided_limits ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1293 of file mode_auto.cpp.

Referenced by start_command().

Here is the caller graph for this function:

◆ do_land()

void Copter::ModeAuto::do_land ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1103 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_loiter_time()

void Copter::ModeAuto::do_loiter_time ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1194 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_loiter_unlimited()

void Copter::ModeAuto::do_loiter_unlimited ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1126 of file mode_auto.cpp.

Referenced by do_loiter_time(), and start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_mount_control()

void Copter::ModeAuto::do_mount_control ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1374 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_nav_delay()

void Copter::ModeAuto::do_nav_delay ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1304 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_nav_guided_enable()

void Copter::ModeAuto::do_nav_guided_enable ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1281 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_nav_wp()

void Copter::ModeAuto::do_nav_wp ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1065 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_parachute()

void Copter::ModeAuto::do_parachute ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1414 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_payload_place()

void Copter::ModeAuto::do_payload_place ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1482 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_roi()

void Copter::ModeAuto::do_roi ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1368 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_RTL()

void Copter::ModeAuto::do_RTL ( void  )
private

Definition at line 1502 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_set_home()

void Copter::ModeAuto::do_set_home ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1355 of file mode_auto.cpp.

Referenced by start_command().

Here is the caller graph for this function:

◆ do_spline_wp()

void Copter::ModeAuto::do_spline_wp ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1205 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_takeoff()

void Copter::ModeAuto::do_takeoff ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1058 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_wait_delay()

void Copter::ModeAuto::do_wait_delay ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1322 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_winch()

void Copter::ModeAuto::do_winch ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1458 of file mode_auto.cpp.

Referenced by start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_within_distance()

void Copter::ModeAuto::do_within_distance ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1328 of file mode_auto.cpp.

Referenced by start_command().

Here is the caller graph for this function:

◆ do_yaw()

void Copter::ModeAuto::do_yaw ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1333 of file mode_auto.cpp.

Referenced by do_guided(), and start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exit_mission()

void Copter::ModeAuto::exit_mission ( )

Definition at line 563 of file mode_auto.cpp.

Referenced by Copter::exit_mission().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_wp()

bool Copter::ModeAuto::get_wp ( Location_Class loc)
overrideprotectedvirtual

Reimplemented from Copter::Mode.

Definition at line 619 of file mode_auto.cpp.

Here is the call graph for this function:

◆ has_manual_throttle()

bool Copter::ModeAuto::has_manual_throttle ( ) const
inlineoverridevirtual

Implements Copter::Mode.

Definition at line 245 of file Copter.h.

◆ in_guided_mode()

bool Copter::ModeAuto::in_guided_mode ( ) const
inlinevirtual

Reimplemented from Copter::Mode.

Definition at line 247 of file Copter.h.

◆ init()

bool Copter::ModeAuto::init ( bool  ignore_checks)
overridevirtual

Implements Copter::Mode.

Definition at line 23 of file mode_auto.cpp.

Here is the call graph for this function:

◆ is_autopilot()

bool Copter::ModeAuto::is_autopilot ( ) const
inlineoverridevirtual

Reimplemented from Copter::Mode.

Definition at line 243 of file Copter.h.

◆ land_run()

void Copter::ModeAuto::land_run ( )
private

Definition at line 861 of file mode_auto.cpp.

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ land_start() [1/2]

void Copter::ModeAuto::land_start ( )

Definition at line 217 of file mode_auto.cpp.

Referenced by do_land(), and verify_land().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ land_start() [2/2]

void Copter::ModeAuto::land_start ( const Vector3f destination)

Definition at line 228 of file mode_auto.cpp.

Here is the call graph for this function:

◆ landing_gear_should_be_deployed()

bool Copter::ModeAuto::landing_gear_should_be_deployed ( ) const
overridevirtual

Reimplemented from Copter::Mode.

Definition at line 345 of file mode_auto.cpp.

◆ loiter_run()

void Copter::ModeAuto::loiter_run ( )
private

Definition at line 912 of file mode_auto.cpp.

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loiter_start()

bool Copter::ModeAuto::loiter_start ( )

Definition at line 105 of file mode_auto.cpp.

Referenced by exit_mission().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mode()

AutoMode Copter::ModeAuto::mode ( ) const
inline

Definition at line 250 of file Copter.h.

Referenced by do_guided(), and verify_circle().

Here is the caller graph for this function:

◆ name()

const char* Copter::ModeAuto::name ( ) const
inlineoverrideprotectedvirtual

Implements Copter::Mode.

Definition at line 279 of file Copter.h.

◆ name4()

const char* Copter::ModeAuto::name4 ( ) const
inlineoverrideprotectedvirtual

Implements Copter::Mode.

Definition at line 280 of file Copter.h.

◆ nav_guided_run()

void Copter::ModeAuto::nav_guided_run ( )
private

Definition at line 903 of file mode_auto.cpp.

Referenced by run().

Here is the caller graph for this function:

◆ nav_guided_start()

void Copter::ModeAuto::nav_guided_start ( )

Definition at line 333 of file mode_auto.cpp.

Referenced by do_nav_guided_enable().

Here is the caller graph for this function:

◆ payload_place_run()

void Copter::ModeAuto::payload_place_run ( )
private

Definition at line 957 of file mode_auto.cpp.

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ payload_place_run_descend()

void Copter::ModeAuto::payload_place_run_descend ( )
private

Definition at line 1025 of file mode_auto.cpp.

Referenced by payload_place_run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ payload_place_run_loiter()

void Copter::ModeAuto::payload_place_run_loiter ( )
private

Definition at line 1009 of file mode_auto.cpp.

Referenced by payload_place_run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ payload_place_run_release()

void Copter::ModeAuto::payload_place_run_release ( )
private

◆ payload_place_run_should_run()

bool Copter::ModeAuto::payload_place_run_should_run ( )
private

Definition at line 987 of file mode_auto.cpp.

Referenced by payload_place_run().

Here is the caller graph for this function:

◆ payload_place_start() [1/2]

void Copter::ModeAuto::payload_place_start ( )

Definition at line 359 of file mode_auto.cpp.

Referenced by do_payload_place().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ payload_place_start() [2/2]

void Copter::ModeAuto::payload_place_start ( const Vector3f destination)
private

Definition at line 937 of file mode_auto.cpp.

Here is the call graph for this function:

◆ requires_GPS()

bool Copter::ModeAuto::requires_GPS ( ) const
inlineoverridevirtual

Implements Copter::Mode.

Definition at line 244 of file Copter.h.

◆ rtl_run()

void Copter::ModeAuto::rtl_run ( )
private

Definition at line 880 of file mode_auto.cpp.

Referenced by run().

Here is the caller graph for this function:

◆ rtl_start()

void Copter::ModeAuto::rtl_start ( )

Definition at line 127 of file mode_auto.cpp.

Referenced by do_RTL().

Here is the caller graph for this function:

◆ run()

void Copter::ModeAuto::run ( void  )
overridevirtual

Implements Copter::Mode.

Definition at line 57 of file mode_auto.cpp.

Here is the call graph for this function:

◆ run_autopilot()

void Copter::ModeAuto::run_autopilot ( )
overrideprotectedvirtual

Reimplemented from Copter::Mode.

Definition at line 632 of file mode_auto.cpp.

◆ spline_run()

void Copter::ModeAuto::spline_run ( )
private

Definition at line 818 of file mode_auto.cpp.

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ spline_start() [1/2]

void Copter::ModeAuto::spline_start ( const Vector3f destination,
bool  stopped_at_start,
AC_WPNav::spline_segment_end_type  seg_end_type,
const Vector3f next_spline_destination 
)

Referenced by do_spline_wp().

Here is the caller graph for this function:

◆ spline_start() [2/2]

void Copter::ModeAuto::spline_start ( const Location_Class destination,
bool  stopped_at_start,
AC_WPNav::spline_segment_end_type  seg_end_type,
const Location_Class next_destination 
)

Definition at line 311 of file mode_auto.cpp.

Here is the call graph for this function:

◆ start_command()

bool Copter::ModeAuto::start_command ( const AP_Mission::Mission_Command cmd)

navigation commands

do commands

Definition at line 371 of file mode_auto.cpp.

Referenced by Copter::start_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ takeoff_run()

void Copter::ModeAuto::takeoff_run ( )
private

Definition at line 729 of file mode_auto.cpp.

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ takeoff_start()

void Copter::ModeAuto::takeoff_start ( const Location dest_loc)

Definition at line 136 of file mode_auto.cpp.

Referenced by do_takeoff().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ terrain_adjusted_location()

Location_Class Copter::ModeAuto::terrain_adjusted_location ( const AP_Mission::Mission_Command cmd) const
private

Definition at line 1033 of file mode_auto.cpp.

Referenced by do_land(), and do_payload_place().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_circle()

bool Copter::ModeAuto::verify_circle ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1808 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_command()

bool Copter::ModeAuto::verify_command ( const AP_Mission::Mission_Command cmd)
private

conditional commands

Definition at line 646 of file mode_auto.cpp.

Referenced by verify_command_callback().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_command_callback()

bool Copter::ModeAuto::verify_command_callback ( const AP_Mission::Mission_Command cmd)

Definition at line 547 of file mode_auto.cpp.

Referenced by Copter::verify_command_callback().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_land()

bool Copter::ModeAuto::verify_land ( )
private

Definition at line 1520 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_loiter_time()

bool Copter::ModeAuto::verify_loiter_time ( )
private

Definition at line 1723 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_loiter_unlimited()

bool Copter::ModeAuto::verify_loiter_unlimited ( )
private

Definition at line 1717 of file mode_auto.cpp.

Referenced by verify_command().

Here is the caller graph for this function:

◆ verify_nav_delay()

bool Copter::ModeAuto::verify_nav_delay ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1876 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_nav_guided_enable()

bool Copter::ModeAuto::verify_nav_guided_enable ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1863 of file mode_auto.cpp.

Referenced by verify_command().

Here is the caller graph for this function:

◆ verify_nav_wp()

bool Copter::ModeAuto::verify_nav_wp ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1782 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_payload_place()

bool Copter::ModeAuto::verify_payload_place ( )
private

Definition at line 1565 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_RTL()

bool Copter::ModeAuto::verify_RTL ( )
private

Definition at line 1742 of file mode_auto.cpp.

Referenced by verify_command().

Here is the caller graph for this function:

◆ verify_spline_wp()

bool Copter::ModeAuto::verify_spline_wp ( const AP_Mission::Mission_Command cmd)
private

Definition at line 1840 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_takeoff()

bool Copter::ModeAuto::verify_takeoff ( )
private

Definition at line 1513 of file mode_auto.cpp.

Referenced by verify_command().

Here is the caller graph for this function:

◆ verify_wait_delay()

bool Copter::ModeAuto::verify_wait_delay ( )
private

Definition at line 1751 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_within_distance()

bool Copter::ModeAuto::verify_within_distance ( )
private

Definition at line 1760 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_yaw()

bool Copter::ModeAuto::verify_yaw ( )
private

Definition at line 1770 of file mode_auto.cpp.

Referenced by verify_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wp_bearing()

int32_t Copter::ModeAuto::wp_bearing ( ) const
overrideprotectedvirtual

Reimplemented from Copter::Mode.

Definition at line 614 of file mode_auto.cpp.

Here is the call graph for this function:

◆ wp_distance()

uint32_t Copter::ModeAuto::wp_distance ( ) const
overrideprotectedvirtual

Reimplemented from Copter::Mode.

Definition at line 609 of file mode_auto.cpp.

Referenced by verify_within_distance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wp_run()

void Copter::ModeAuto::wp_run ( )
private

Definition at line 775 of file mode_auto.cpp.

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wp_start() [1/2]

void Copter::ModeAuto::wp_start ( const Vector3f destination)

Definition at line 183 of file mode_auto.cpp.

Referenced by do_land(), do_loiter_unlimited(), do_nav_wp(), do_payload_place(), and verify_payload_place().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wp_start() [2/2]

void Copter::ModeAuto::wp_start ( const Location_Class dest_loc)

Definition at line 198 of file mode_auto.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _mode

AutoMode Copter::ModeAuto::_mode = Auto_TakeOff
private

◆ condition_start

uint32_t Copter::ModeAuto::condition_start
private

Definition at line 375 of file Copter.h.

Referenced by do_wait_delay(), and verify_wait_delay().

◆ condition_value

int32_t Copter::ModeAuto::condition_value
private

◆ descend_max

float Copter::ModeAuto::descend_max

Definition at line 387 of file Copter.h.

◆ descend_start_altitude

float Copter::ModeAuto::descend_start_altitude

Definition at line 386 of file Copter.h.

◆ descend_start_timestamp

uint32_t Copter::ModeAuto::descend_start_timestamp

Definition at line 383 of file Copter.h.

◆ descend_throttle_level

float Copter::ModeAuto::descend_throttle_level

Definition at line 385 of file Copter.h.

◆ hover_start_timestamp

uint32_t Copter::ModeAuto::hover_start_timestamp

Definition at line 381 of file Copter.h.

◆ hover_throttle_level

float Copter::ModeAuto::hover_throttle_level

Definition at line 382 of file Copter.h.

◆ land_state

LandStateType Copter::ModeAuto::land_state = LandStateType_FlyToLocation
private

Definition at line 377 of file Copter.h.

Referenced by do_land(), and verify_land().

◆ loiter_time

uint32_t Copter::ModeAuto::loiter_time
private

◆ loiter_time_max

uint16_t Copter::ModeAuto::loiter_time_max
private

◆ nav_delay_time_max

int32_t Copter::ModeAuto::nav_delay_time_max
private

Definition at line 370 of file Copter.h.

Referenced by do_nav_delay(), and verify_nav_delay().

◆ nav_delay_time_start

uint32_t Copter::ModeAuto::nav_delay_time_start
private

Definition at line 371 of file Copter.h.

Referenced by do_nav_delay(), and verify_nav_delay().

◆ nav_payload_place

struct { ... } Copter::ModeAuto::nav_payload_place

◆ place_start_timestamp

uint32_t Copter::ModeAuto::place_start_timestamp

Definition at line 384 of file Copter.h.

◆ state

Definition at line 380 of file Copter.h.


The documentation for this class was generated from the following files: