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 72 of file controller.h.

Constructor & Destructor Documentation

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

Definition at line 215 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 227 of file controller.cpp.

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

Definition at line 237 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 258 of file controller.cpp.

Member Data Documentation

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

Definition at line 89 of file controller.h.

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

Definition at line 88 of file controller.h.

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

Definition at line 83 of file controller.h.

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

Definition at line 82 of file controller.h.

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

Definition at line 81 of file controller.h.

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

Definition at line 85 of file controller.h.

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

Definition at line 86 of file controller.h.

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

Definition at line 90 of file controller.h.

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

Definition at line 91 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 Mon Jan 13 2020 19:50:06