|
APM:Copter
|
#include <mode.h>
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 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_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 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 Mode | |
| static AutoYaw | auto_yaw |
Protected Attributes inherited from Mode | |
| 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 |
| heli_flags_t & | heli_flags |
|
inlineoverridevirtual |
|
private |
| void ModeAuto::circle_movetoedge_start | ( | const Location_Class & | circle_center, |
| float | radius_m | ||
| ) |
|
private |
| void ModeAuto::circle_start | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
| bool ModeAuto::do_guided | ( | const AP_Mission::Mission_Command & | cmd | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void ModeAuto::exit_mission | ( | ) |
|
overrideprotectedvirtual |
Reimplemented from Mode.
|
inlineoverridevirtual |
|
inlinevirtual |
|
overridevirtual |
Implements Mode.
|
inlineoverridevirtual |
|
private |
| void ModeAuto::land_start | ( | ) |
| void ModeAuto::land_start | ( | const Vector3f & | destination | ) |
|
overridevirtual |
Reimplemented from Mode.
|
private |
| bool ModeAuto::loiter_start | ( | ) |
|
inline |
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
private |
| void ModeAuto::nav_guided_start | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
| void ModeAuto::payload_place_start | ( | ) |
|
private |
|
inlineoverridevirtual |
|
private |
| void ModeAuto::rtl_start | ( | ) |
|
overridevirtual |
Implements Mode.
|
overrideprotectedvirtual |
Reimplemented from Mode.
|
private |
| void ModeAuto::spline_start | ( | const Vector3f & | destination, |
| bool | stopped_at_start, | ||
| AC_WPNav::spline_segment_end_type | seg_end_type, | ||
| const Vector3f & | next_spline_destination | ||
| ) |
| void 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 | ||
| ) |
| bool ModeAuto::start_command | ( | const AP_Mission::Mission_Command & | cmd | ) |
|
private |
| void ModeAuto::takeoff_start | ( | const Location & | dest_loc | ) |
|
private |
|
private |
|
private |
| bool ModeAuto::verify_command_callback | ( | const AP_Mission::Mission_Command & | cmd | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Reimplemented from Mode.
|
overrideprotectedvirtual |
Reimplemented from Mode.
|
private |
| void ModeAuto::wp_start | ( | const Vector3f & | destination | ) |
| void ModeAuto::wp_start | ( | const Location_Class & | dest_loc | ) |
|
private |
|
private |
| struct { ... } ModeAuto::nav_payload_place |
| PayloadPlaceStateType ModeAuto::state = PayloadPlaceStateType_Calibrating_Hover_Start |
1.8.13