APM:Copter
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
ModePosHold Class Reference

#include <mode.h>

Inheritance diagram for ModePosHold:
[legend]
Collaboration diagram for ModePosHold:
[legend]

Public Member Functions

bool init (bool ignore_checks) override
 
void run () override
 
bool requires_GPS () const override
 
bool has_manual_throttle () const override
 
bool allows_arming (bool from_gcs) const override
 
bool is_autopilot () const override
 

Protected Member Functions

const char * name () const override
 
const char * name4 () const override
 
- Protected Member Functions inherited from Mode
virtual bool landing_gear_should_be_deployed () const
 
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_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

void poshold_update_pilot_lean_angle (float &lean_angle_filtered, float &lean_angle_raw)
 
int16_t poshold_mix_controls (float mix_ratio, int16_t first_control, int16_t second_control)
 
void poshold_update_brake_angle_from_velocity (int16_t &brake_angle, float velocity)
 
void poshold_update_wind_comp_estimate ()
 
void poshold_get_wind_comp_lean_angles (int16_t &roll_angle, int16_t &pitch_angle)
 
void poshold_roll_controller_to_pilot_override ()
 
void poshold_pitch_controller_to_pilot_override ()
 

Additional Inherited Members

- Static Public Attributes inherited from Mode
static AutoYaw auto_yaw
 
- Protected Attributes inherited from 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_t & ap
 
takeoff_state_t & takeoff_state
 
float & ekfGndSpdLimit
 
float & ekfNavVelGainScaler
 
heli_flags_t & heli_flags
 

Detailed Description

Definition at line 895 of file mode.h.

Member Function Documentation

◆ allows_arming()

bool ModePosHold::allows_arming ( bool  from_gcs) const
inlineoverridevirtual

Implements Mode.

Definition at line 906 of file mode.h.

◆ has_manual_throttle()

bool ModePosHold::has_manual_throttle ( ) const
inlineoverridevirtual

Implements Mode.

Definition at line 905 of file mode.h.

◆ init()

bool ModePosHold::init ( bool  ignore_checks)
overridevirtual

Implements Mode.

◆ is_autopilot()

bool ModePosHold::is_autopilot ( ) const
inlineoverridevirtual

Reimplemented from Mode.

Definition at line 907 of file mode.h.

◆ name()

const char* ModePosHold::name ( ) const
inlineoverrideprotectedvirtual

Implements Mode.

Definition at line 911 of file mode.h.

◆ name4()

const char* ModePosHold::name4 ( ) const
inlineoverrideprotectedvirtual

Implements Mode.

Definition at line 912 of file mode.h.

◆ poshold_get_wind_comp_lean_angles()

void ModePosHold::poshold_get_wind_comp_lean_angles ( int16_t &  roll_angle,
int16_t &  pitch_angle 
)
private

◆ poshold_mix_controls()

int16_t ModePosHold::poshold_mix_controls ( float  mix_ratio,
int16_t  first_control,
int16_t  second_control 
)
private

◆ poshold_pitch_controller_to_pilot_override()

void ModePosHold::poshold_pitch_controller_to_pilot_override ( )
private

◆ poshold_roll_controller_to_pilot_override()

void ModePosHold::poshold_roll_controller_to_pilot_override ( )
private

◆ poshold_update_brake_angle_from_velocity()

void ModePosHold::poshold_update_brake_angle_from_velocity ( int16_t &  brake_angle,
float  velocity 
)
private

◆ poshold_update_pilot_lean_angle()

void ModePosHold::poshold_update_pilot_lean_angle ( float &  lean_angle_filtered,
float &  lean_angle_raw 
)
private

◆ poshold_update_wind_comp_estimate()

void ModePosHold::poshold_update_wind_comp_estimate ( )
private

◆ requires_GPS()

bool ModePosHold::requires_GPS ( ) const
inlineoverridevirtual

Implements Mode.

Definition at line 904 of file mode.h.

◆ run()

void ModePosHold::run ( )
overridevirtual

Implements Mode.


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