#include <mode.h>
◆ allows_arming()
virtual bool Mode::allows_arming |
( |
bool |
from_gcs | ) |
const |
|
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.
◆ gcs()
◆ get_alt_above_ground()
int32_t Mode::get_alt_above_ground |
( |
void |
| ) |
|
|
protected |
◆ get_avoidance_adjusted_climbrate()
float Mode::get_avoidance_adjusted_climbrate |
( |
float |
target_rate | ) |
|
|
protected |
◆ get_non_takeoff_throttle()
float Mode::get_non_takeoff_throttle |
( |
void |
| ) |
|
|
protected |
◆ get_pilot_desired_climb_rate()
float Mode::get_pilot_desired_climb_rate |
( |
float |
throttle_control | ) |
|
|
protected |
◆ get_pilot_desired_lean_angles()
void Mode::get_pilot_desired_lean_angles |
( |
float & |
roll_out, |
|
|
float & |
pitch_out, |
|
|
float |
angle_max, |
|
|
float |
angle_limit |
|
) |
| const |
|
protected |
◆ get_pilot_desired_throttle()
float Mode::get_pilot_desired_throttle |
( |
int16_t |
throttle_control, |
|
|
float |
thr_mid = 0.0f |
|
) |
| |
|
protected |
◆ get_pilot_desired_yaw_rate()
float Mode::get_pilot_desired_yaw_rate |
( |
int16_t |
stick_angle | ) |
|
|
protected |
◆ get_pilot_speed_dn()
uint16_t Mode::get_pilot_speed_dn |
( |
void |
| ) |
|
|
protected |
◆ get_surface_tracking_climb_rate()
float Mode::get_surface_tracking_climb_rate |
( |
int16_t |
target_rate, |
|
|
float |
current_alt_target, |
|
|
float |
dt |
|
) |
| |
|
protected |
◆ get_wp()
virtual bool Mode::get_wp |
( |
Location_Class & |
loc | ) |
|
|
inlineprotectedvirtual |
◆ has_manual_throttle()
virtual bool Mode::has_manual_throttle |
( |
| ) |
const |
|
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.
◆ in_guided_mode()
virtual bool Mode::in_guided_mode |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ init()
virtual bool Mode::init |
( |
bool |
ignore_checks | ) |
|
|
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.
◆ is_autopilot()
virtual bool Mode::is_autopilot |
( |
| ) |
const |
|
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.
◆ land_run_horizontal_control()
void Mode::land_run_horizontal_control |
( |
| ) |
|
|
protected |
◆ land_run_vertical_control()
void Mode::land_run_vertical_control |
( |
bool |
pause_descent = false | ) |
|
|
protected |
◆ landing_gear_should_be_deployed()
virtual bool Mode::landing_gear_should_be_deployed |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ Log_Write_Event()
void Mode::Log_Write_Event |
( |
uint8_t |
id | ) |
|
|
protected |
◆ name()
virtual const char* Mode::name |
( |
| ) |
const |
|
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.
◆ name4()
virtual const char* Mode::name4 |
( |
| ) |
const |
|
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.
◆ requires_GPS()
virtual bool Mode::requires_GPS |
( |
| ) |
const |
|
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.
◆ run()
virtual void Mode::run |
( |
| ) |
|
|
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.
◆ run_autopilot()
virtual void Mode::run_autopilot |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ set_land_complete()
void Mode::set_land_complete |
( |
bool |
b | ) |
|
|
protected |
◆ set_mode()
◆ set_throttle_takeoff()
void Mode::set_throttle_takeoff |
( |
void |
| ) |
|
|
protected |
◆ takeoff_get_climb_rates()
void Mode::takeoff_get_climb_rates |
( |
float & |
pilot_climb_rate, |
|
|
float & |
takeoff_climb_rate |
|
) |
| |
|
protected |
◆ takeoff_stop()
void Mode::takeoff_stop |
( |
void |
| ) |
|
|
protected |
◆ takeoff_timer_start()
void Mode::takeoff_timer_start |
( |
float |
alt_cm | ) |
|
|
protected |
◆ takeoff_triggered()
bool Mode::takeoff_triggered |
( |
float |
target_climb_rate | ) |
const |
|
protected |
◆ update_navigation()
void Mode::update_navigation |
( |
| ) |
|
|
protected |
◆ update_simple_mode()
void Mode::update_simple_mode |
( |
void |
| ) |
|
|
protected |
◆ wp_bearing()
virtual int32_t Mode::wp_bearing |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ wp_distance()
virtual uint32_t Mode::wp_distance |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ zero_throttle_and_relax_ac()
void Mode::zero_throttle_and_relax_ac |
( |
| ) |
|
|
protected |
◆ AP_Arming_Copter
◆ Copter
◆ GCS_MAVLINK_Copter
◆ ToyMode
◆ ahrs
◆ ap
◆ attitude_control
◆ auto_yaw
◆ channel_pitch
RC_Channel*& Mode::channel_pitch |
|
protected |
◆ channel_roll
RC_Channel*& Mode::channel_roll |
|
protected |
◆ channel_throttle
RC_Channel*& Mode::channel_throttle |
|
protected |
◆ channel_yaw
RC_Channel*& Mode::channel_yaw |
|
protected |
◆ ekfGndSpdLimit
float& Mode::ekfGndSpdLimit |
|
protected |
◆ ekfNavVelGainScaler
float& Mode::ekfNavVelGainScaler |
|
protected |
◆ g2
◆ G_Dt
◆ heli_flags
heli_flags_t& Mode::heli_flags |
|
protected |
◆ inertial_nav
AP_InertialNav& Mode::inertial_nav |
|
protected |
◆ loiter_nav
AC_Loiter*& Mode::loiter_nav |
|
protected |
◆ motors
◆ pos_control
AC_PosControl*& Mode::pos_control |
|
protected |
◆ takeoff_state
takeoff_state_t& Mode::takeoff_state |
|
protected |
◆ wp_nav
The documentation for this class was generated from the following file:
- C:/GitHub/ardupilot/ArduCopter/mode.h