APM:Copter
|
#include <mode.h>
Classes | |
class | AutoYaw |
Static Public Attributes | |
static AutoYaw | auto_yaw |
Protected Member Functions | |
virtual bool | init (bool ignore_checks)=0 |
virtual void | run ()=0 |
virtual bool | is_autopilot () const |
virtual bool | requires_GPS () const =0 |
virtual bool | has_manual_throttle () const =0 |
virtual bool | allows_arming (bool from_gcs) const =0 |
virtual bool | landing_gear_should_be_deployed () const |
virtual const char * | name () const =0 |
virtual const char * | name4 () const =0 |
void | update_navigation () |
virtual void | run_autopilot () |
virtual uint32_t | wp_distance () const |
virtual int32_t | wp_bearing () const |
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) |
Protected Attributes | |
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 |
Private Member Functions | |
Mode (void) | |
Friends | |
class | Copter |
class | AP_Arming_Copter |
class | ToyMode |
class | GCS_MAVLINK_Copter |
|
private |
|
protectedpure virtual |
Implemented in ModeFollow, ModeAvoidADSB, ModeThrow, ModeStabilize, ModeSport, ModeSmartRTL, ModeRTL, ModePosHold, ModeLoiter, ModeLand, ModeGuidedNoGPS, ModeGuided, ModeFlowHold, ModeFlip, ModeDrift, ModeCircle, ModeBrake, ModeAutoTune, ModeAuto, ModeAltHold, and ModeAcro.
Referenced by is_autopilot().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in ModeGuided, and ModeAuto.
Definition at line 96 of file mode.h.
Referenced by ModeGuided::in_guided_mode(), and ModeAuto::name4().
|
protectedpure virtual |
Implemented in ModeFollow, ModeAvoidADSB, ModeThrow, ModeStabilize, ModeSport, ModeSmartRTL, ModeRTL, ModePosHold, ModeLoiter, ModeLand, ModeGuidedNoGPS, ModeGuided, ModeFlowHold, ModeFlip, ModeDrift, ModeCircle, ModeBrake, ModeAutoTune, ModeAuto, ModeAltHold, and ModeAcro.
Referenced by is_autopilot().
|
inlineprotectedvirtual |
Reimplemented in ModeGuided, and ModeAuto.
Definition at line 97 of file mode.h.
|
protectedpure virtual |
Implemented in ModeFollow, ModeAvoidADSB, ModeThrow, ModeStabilize_Heli, ModeStabilize, ModeSport, ModeSmartRTL, ModeRTL, ModePosHold, ModeLoiter, ModeLand, ModeGuidedNoGPS, ModeGuided, ModeFlowHold, ModeFlip, ModeDrift, ModeCircle, ModeBrake, ModeAutoTune, ModeAuto, ModeAltHold, ModeAcro_Heli, and ModeAcro.
|
inlineprotectedvirtual |
Reimplemented in ModeFollow, ModeAvoidADSB, ModeThrow, ModeStabilize, ModeSport, ModeSmartRTL, ModeRTL, ModePosHold, ModeLoiter, ModeLand, ModeGuidedNoGPS, ModeGuided, ModeFlowHold, ModeFlip, ModeDrift, ModeCircle, ModeBrake, ModeAutoTune, ModeAuto, ModeAltHold, and ModeAcro.
Definition at line 79 of file mode.h.
|
protected |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in ModeRTL, ModeLand, and ModeAuto.
Definition at line 84 of file mode.h.
Referenced by ModeAuto::mode(), and ModeRTL::state_complete().
|
protected |
|
protectedpure virtual |
Implemented in ModeFollow, ModeAvoidADSB, ModeThrow, ModeStabilize, ModeSport, ModeSmartRTL, ModeRTL, ModePosHold, ModeLoiter, ModeLand, ModeGuidedNoGPS, ModeGuided, ModeFlowHold, ModeFlip, ModeDrift, ModeCircle, ModeBrake, ModeAutoTune, ModeAuto, ModeAltHold, and ModeAcro.
Referenced by landing_gear_should_be_deployed().
|
protectedpure virtual |
Implemented in ModeFollow, ModeAvoidADSB, ModeThrow, ModeStabilize, ModeSport, ModeSmartRTL, ModeRTL, ModePosHold, ModeLoiter, ModeLand, ModeGuidedNoGPS, ModeGuided, ModeFlowHold, ModeFlip, ModeDrift, ModeCircle, ModeBrake, ModeAutoTune, ModeAuto, ModeAltHold, and ModeAcro.
Referenced by landing_gear_should_be_deployed().
|
protectedpure virtual |
Implemented in ModeFollow, ModeAvoidADSB, ModeThrow, ModeStabilize, ModeSport, ModeSmartRTL, ModeRTL, ModePosHold, ModeLoiter, ModeLand, ModeGuidedNoGPS, ModeGuided, ModeFlowHold, ModeFlip, ModeDrift, ModeCircle, ModeBrake, ModeAutoTune, ModeAuto, ModeAltHold, and ModeAcro.
Referenced by is_autopilot().
|
protectedpure virtual |
Implemented in ModeFollow, ModeAvoidADSB, ModeThrow, ModeStabilize_Heli, ModeStabilize, ModeSport, ModeSmartRTL, ModeRTL, ModePosHold, ModeLoiter, ModeLand, ModeGuidedNoGPS, ModeGuided, ModeFlowHold, ModeFlip, ModeDrift, ModeCircle, ModeBrake, ModeAutoTune, ModeAuto, ModeAltHold, ModeAcro_Heli, and ModeAcro.
Referenced by ModeRTL::run().
|
inlineprotectedvirtual |
Reimplemented in ModeAuto.
Definition at line 93 of file mode.h.
Referenced by ModeAuto::name4().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in ModeSmartRTL, ModeRTL, ModeLoiter, ModeGuided, ModeCircle, and ModeAuto.
Definition at line 95 of file mode.h.
Referenced by ModeAuto::name4(), ModeCircle::name4(), ModeGuided::name4(), ModeLoiter::name4(), ModeRTL::name4(), and ModeSmartRTL::name4().
|
inlineprotectedvirtual |
Reimplemented in ModeSmartRTL, ModeRTL, ModeLoiter, ModeGuided, ModeCircle, and ModeAuto.
Definition at line 94 of file mode.h.
Referenced by ModeAuto::name4(), ModeCircle::name4(), ModeGuided::name4(), ModeLoiter::name4(), ModeRTL::name4(), and ModeSmartRTL::name4().
|
protected |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |