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

Constructor & Destructor Documentation

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

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

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

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

Member Data Documentation

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

Definition at line 88 of file controller.h.

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

Definition at line 87 of file controller.h.

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

Definition at line 82 of file controller.h.

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

Definition at line 81 of file controller.h.

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

Definition at line 80 of file controller.h.

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

Definition at line 84 of file controller.h.

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

Definition at line 85 of file controller.h.

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

Definition at line 89 of file controller.h.

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

Definition at line 90 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 Thu Apr 15 2021 05:07:58