APM:Libraries
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
AP_RollController Class Reference

#include <AP_RollController.h>

Collaboration diagram for AP_RollController:
[legend]

Public Member Functions

 AP_RollController (AP_AHRS &ahrs, const AP_Vehicle::FixedWing &parms, DataFlash_Class &_dataflash)
 
 AP_RollController (const AP_RollController &other)=delete
 
AP_RollControlleroperator= (const AP_RollController &)=delete
 
int32_t get_rate_out (float desired_rate, float scaler)
 
int32_t get_servo_out (int32_t angle_err, float scaler, bool disable_integrator)
 
void reset_I ()
 
void autotune_start (void)
 
void autotune_restore (void)
 
const DataFlash_Class::PID_Infoget_pid_info (void) const
 
void kP (float v)
 
void kI (float v)
 
void kD (float v)
 
void kFF (float v)
 
AP_Float & kP (void)
 
AP_Float & kI (void)
 
AP_Float & kD (void)
 
AP_Float & kFF (void)
 

Static Public Attributes

static const struct AP_Param::GroupInfo var_info []
 

Private Member Functions

int32_t _get_rate_out (float desired_rate, float scaler, bool disable_integrator)
 

Private Attributes

const AP_Vehicle::FixedWingaparm
 
AP_AutoTune::ATGains gains
 
AP_AutoTune autotune
 
uint32_t _last_t
 
float _last_out
 
DataFlash_Class::PID_Info _pid_info
 
AP_AHRS_ahrs
 

Detailed Description

Definition at line 10 of file AP_RollController.h.

Constructor & Destructor Documentation

◆ AP_RollController() [1/2]

AP_RollController::AP_RollController ( AP_AHRS ahrs,
const AP_Vehicle::FixedWing parms,
DataFlash_Class _dataflash 
)
inline

Definition at line 12 of file AP_RollController.h.

Here is the call graph for this function:

◆ AP_RollController() [2/2]

AP_RollController::AP_RollController ( const AP_RollController other)
delete

Member Function Documentation

◆ _get_rate_out()

int32_t AP_RollController::_get_rate_out ( float  desired_rate,
float  scaler,
bool  disable_integrator 
)
private

Definition at line 92 of file AP_RollController.cpp.

Referenced by get_rate_out(), and get_servo_out().

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

◆ autotune_restore()

void AP_RollController::autotune_restore ( void  )
inline

Definition at line 30 of file AP_RollController.h.

Here is the call graph for this function:

◆ autotune_start()

void AP_RollController::autotune_start ( void  )
inline

Definition at line 29 of file AP_RollController.h.

Here is the call graph for this function:

◆ get_pid_info()

const DataFlash_Class::PID_Info& AP_RollController::get_pid_info ( void  ) const
inline

Definition at line 32 of file AP_RollController.h.

◆ get_rate_out()

int32_t AP_RollController::get_rate_out ( float  desired_rate,
float  scaler 
)

Definition at line 189 of file AP_RollController.cpp.

Referenced by AP_RollController().

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

◆ get_servo_out()

int32_t AP_RollController::get_servo_out ( int32_t  angle_err,
float  scaler,
bool  disable_integrator 
)

Definition at line 203 of file AP_RollController.cpp.

Referenced by AP_RollController().

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

◆ kD() [1/2]

void AP_RollController::kD ( float  v)
inline

Definition at line 40 of file AP_RollController.h.

◆ kD() [2/2]

AP_Float& AP_RollController::kD ( void  )
inline

Definition at line 45 of file AP_RollController.h.

◆ kFF() [1/2]

void AP_RollController::kFF ( float  v)
inline

Definition at line 41 of file AP_RollController.h.

◆ kFF() [2/2]

AP_Float& AP_RollController::kFF ( void  )
inline

Definition at line 46 of file AP_RollController.h.

◆ kI() [1/2]

void AP_RollController::kI ( float  v)
inline

Definition at line 39 of file AP_RollController.h.

◆ kI() [2/2]

AP_Float& AP_RollController::kI ( void  )
inline

Definition at line 44 of file AP_RollController.h.

◆ kP() [1/2]

void AP_RollController::kP ( float  v)
inline

Definition at line 38 of file AP_RollController.h.

◆ kP() [2/2]

AP_Float& AP_RollController::kP ( void  )
inline

Definition at line 43 of file AP_RollController.h.

◆ operator=()

AP_RollController& AP_RollController::operator= ( const AP_RollController )
delete

Referenced by AP_RollController().

Here is the caller graph for this function:

◆ reset_I()

void AP_RollController::reset_I ( )

Definition at line 215 of file AP_RollController.cpp.

Referenced by AP_RollController().

Here is the caller graph for this function:

Member Data Documentation

◆ _ahrs

AP_AHRS& AP_RollController::_ahrs
private

Definition at line 59 of file AP_RollController.h.

Referenced by _get_rate_out().

◆ _last_out

float AP_RollController::_last_out
private

Definition at line 53 of file AP_RollController.h.

Referenced by _get_rate_out().

◆ _last_t

uint32_t AP_RollController::_last_t
private

Definition at line 52 of file AP_RollController.h.

Referenced by _get_rate_out().

◆ _pid_info

DataFlash_Class::PID_Info AP_RollController::_pid_info
private

Definition at line 55 of file AP_RollController.h.

Referenced by _get_rate_out(), get_pid_info(), and reset_I().

◆ aparm

const AP_Vehicle::FixedWing& AP_RollController::aparm
private

Definition at line 49 of file AP_RollController.h.

Referenced by _get_rate_out().

◆ autotune

AP_AutoTune AP_RollController::autotune
private

Definition at line 51 of file AP_RollController.h.

Referenced by _get_rate_out(), autotune_restore(), and autotune_start().

◆ gains

AP_AutoTune::ATGains AP_RollController::gains
private

Definition at line 50 of file AP_RollController.h.

Referenced by _get_rate_out(), get_servo_out(), kD(), kFF(), kI(), and kP().

◆ var_info

const AP_Param::GroupInfo AP_RollController::var_info
static

Definition at line 34 of file AP_RollController.h.

Referenced by AP_RollController().


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