APM:Copter
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Mode::AutoYaw Class Reference

#include <mode.h>

Collaboration diagram for Mode::AutoYaw:
[legend]

Public Member Functions

float yaw ()
 
autopilot_yaw_mode mode () const
 
void set_mode_to_default (bool rtl)
 
void set_mode (autopilot_yaw_mode new_mode)
 
autopilot_yaw_mode default_mode (bool rtl) const
 
float rate_cds () const
 
void set_rate (float new_rate_cds)
 
void set_roi (const Location &roi_location)
 
void set_fixed_yaw (float angle_deg, float turn_rate_dps, int8_t direction, bool relative_angle)
 

Private Member Functions

float look_ahead_yaw ()
 
float roi_yaw ()
 

Private Attributes

uint8_t _mode = AUTO_YAW_LOOK_AT_NEXT_WP
 
Vector3f roi
 
float _roi_yaw
 
int32_t _fixed_yaw
 
int16_t _fixed_yaw_slewrate
 
float _look_ahead_yaw
 
float _rate_cds
 
uint8_t roi_yaw_counter
 

Detailed Description

Definition at line 17 of file mode.h.

Member Function Documentation

◆ default_mode()

autopilot_yaw_mode Mode::AutoYaw::default_mode ( bool  rtl) const

Referenced by mode().

Here is the caller graph for this function:

◆ look_ahead_yaw()

float Mode::AutoYaw::look_ahead_yaw ( )
private

Referenced by mode().

Here is the caller graph for this function:

◆ mode()

autopilot_yaw_mode Mode::AutoYaw::mode ( ) const
inline

Definition at line 25 of file mode.h.

Referenced by ModeAuto::in_guided_mode().

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

◆ rate_cds()

float Mode::AutoYaw::rate_cds ( ) const

Referenced by mode(), and ModeAutoTune::name4().

Here is the caller graph for this function:

◆ roi_yaw()

float Mode::AutoYaw::roi_yaw ( )
private

Referenced by mode().

Here is the caller graph for this function:

◆ set_fixed_yaw()

void Mode::AutoYaw::set_fixed_yaw ( float  angle_deg,
float  turn_rate_dps,
int8_t  direction,
bool  relative_angle 
)

Referenced by mode().

Here is the caller graph for this function:

◆ set_mode()

void Mode::AutoYaw::set_mode ( autopilot_yaw_mode  new_mode)

Referenced by mode().

Here is the caller graph for this function:

◆ set_mode_to_default()

void Mode::AutoYaw::set_mode_to_default ( bool  rtl)

Referenced by mode().

Here is the caller graph for this function:

◆ set_rate()

void Mode::AutoYaw::set_rate ( float  new_rate_cds)

Referenced by mode().

Here is the caller graph for this function:

◆ set_roi()

void Mode::AutoYaw::set_roi ( const Location roi_location)

Referenced by mode().

Here is the caller graph for this function:

◆ yaw()

float Mode::AutoYaw::yaw ( )

Member Data Documentation

◆ _fixed_yaw

int32_t Mode::AutoYaw::_fixed_yaw
private

Definition at line 57 of file mode.h.

◆ _fixed_yaw_slewrate

int16_t Mode::AutoYaw::_fixed_yaw_slewrate
private

Definition at line 60 of file mode.h.

◆ _look_ahead_yaw

float Mode::AutoYaw::_look_ahead_yaw
private

Definition at line 63 of file mode.h.

◆ _mode

uint8_t Mode::AutoYaw::_mode = AUTO_YAW_LOOK_AT_NEXT_WP
private

Definition at line 48 of file mode.h.

Referenced by mode(), and ModeAuto::mode().

◆ _rate_cds

float Mode::AutoYaw::_rate_cds
private

Definition at line 66 of file mode.h.

◆ _roi_yaw

float Mode::AutoYaw::_roi_yaw
private

Definition at line 54 of file mode.h.

◆ roi

Vector3f Mode::AutoYaw::roi
private

Definition at line 51 of file mode.h.

◆ roi_yaw_counter

uint8_t Mode::AutoYaw::roi_yaw_counter
private

Definition at line 69 of file mode.h.


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