Public Member Functions | Private Attributes | List of all members
rosflight_firmware::Controller::PID Class Reference

Public Member Functions

void init (float kp, float ki, float kd, float max, float min, float tau)
 
 PID ()
 
float run (float dt, float x, float x_c, bool update_integrator)
 
float run (float dt, float x, float x_c, bool update_integrator, float xdot)
 

Private Attributes

float differentiator_
 
float integrator_
 
float kd_
 
float ki_
 
float kp_
 
float max_
 
float min_
 
float prev_x_
 
float tau_
 

Detailed Description

Definition at line 73 of file controller.h.

Constructor & Destructor Documentation

rosflight_firmware::Controller::PID::PID ( )

Definition at line 263 of file controller.cpp.

Member Function Documentation

void rosflight_firmware::Controller::PID::init ( float  kp,
float  ki,
float  kd,
float  max,
float  min,
float  tau 
)

Definition at line 275 of file controller.cpp.

float rosflight_firmware::Controller::PID::run ( float  dt,
float  x,
float  x_c,
bool  update_integrator 
)

Definition at line 285 of file controller.cpp.

float rosflight_firmware::Controller::PID::run ( float  dt,
float  x,
float  x_c,
bool  update_integrator,
float  xdot 
)

Definition at line 306 of file controller.cpp.

Member Data Documentation

float rosflight_firmware::Controller::PID::differentiator_
private

Definition at line 90 of file controller.h.

float rosflight_firmware::Controller::PID::integrator_
private

Definition at line 89 of file controller.h.

float rosflight_firmware::Controller::PID::kd_
private

Definition at line 84 of file controller.h.

float rosflight_firmware::Controller::PID::ki_
private

Definition at line 83 of file controller.h.

float rosflight_firmware::Controller::PID::kp_
private

Definition at line 82 of file controller.h.

float rosflight_firmware::Controller::PID::max_
private

Definition at line 86 of file controller.h.

float rosflight_firmware::Controller::PID::min_
private

Definition at line 87 of file controller.h.

float rosflight_firmware::Controller::PID::prev_x_
private

Definition at line 91 of file controller.h.

float rosflight_firmware::Controller::PID::tau_
private

Definition at line 92 of file controller.h.


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


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:31