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

#include <pid.hpp>

Public Member Functions

float ki () const
 
 PID (float kp, float kd, float ki, float minOutput, float maxOutput, float integratorMin, float integratorMax, const std::string &name)
 
void reset ()
 
void setIntegral (float integral)
 
float update (float value, float targetValue)
 

Private Attributes

float m_integral
 
float m_integratorMax
 
float m_integratorMin
 
float m_kd
 
float m_ki
 
float m_kp
 
float m_maxOutput
 
float m_minOutput
 
float m_previousError
 
ros::Time m_previousTime
 

Detailed Description

Definition at line 5 of file pid.hpp.

Constructor & Destructor Documentation

PID::PID ( float  kp,
float  kd,
float  ki,
float  minOutput,
float  maxOutput,
float  integratorMin,
float  integratorMax,
const std::string &  name 
)
inline

Definition at line 8 of file pid.hpp.

Member Function Documentation

float PID::ki ( ) const
inline

Definition at line 42 of file pid.hpp.

void PID::reset ( )
inline

Definition at line 30 of file pid.hpp.

void PID::setIntegral ( float  integral)
inline

Definition at line 37 of file pid.hpp.

float PID::update ( float  value,
float  targetValue 
)
inline

Definition at line 47 of file pid.hpp.

Member Data Documentation

float PID::m_integral
private

Definition at line 80 of file pid.hpp.

float PID::m_integratorMax
private

Definition at line 79 of file pid.hpp.

float PID::m_integratorMin
private

Definition at line 78 of file pid.hpp.

float PID::m_kd
private

Definition at line 74 of file pid.hpp.

float PID::m_ki
private

Definition at line 75 of file pid.hpp.

float PID::m_kp
private

Definition at line 73 of file pid.hpp.

float PID::m_maxOutput
private

Definition at line 77 of file pid.hpp.

float PID::m_minOutput
private

Definition at line 76 of file pid.hpp.

float PID::m_previousError
private

Definition at line 81 of file pid.hpp.

ros::Time PID::m_previousTime
private

Definition at line 82 of file pid.hpp.


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


crazyflie_controller
Author(s): Wolfgang Hoenig
autogenerated on Fri Nov 1 2019 03:39:55