Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
PID_Algorithm Class Referenceabstract

#include <pid_algorithms.h>

Inheritance diagram for PID_Algorithm:

Public Member Functions

 PID_Algorithm ()
 
 PID_Algorithm (float p, float i, float d)
 
virtual float compute (float error, uint32_t dt_millis)=0
 
virtual void clear ()=0
 
void set_P (float p)
 
void set_I (float i)
 
void set_D (float d)
 
void set_PID (float p, float i, float d)
 
float get_P ()
 
float get_I ()
 
float get_D ()
 
void set_Limits (float max_out, float min_out)
 
float get_Upper ()
 
float get_Lower ()
 
virtual ~PID_Algorithm ()
 

Protected Attributes

float p_
 
float i_
 
float d_
 
float max_
 
float min_
 

Constructor & Destructor Documentation

◆ PID_Algorithm() [1/2]

PID_Algorithm::PID_Algorithm ( )
inline
Here is the call graph for this function:

◆ PID_Algorithm() [2/2]

PID_Algorithm::PID_Algorithm ( float  p,
float  i,
float  d 
)
inline
Here is the call graph for this function:

◆ ~PID_Algorithm()

virtual PID_Algorithm::~PID_Algorithm ( )
inlinevirtual

Member Function Documentation

◆ clear()

virtual void PID_Algorithm::clear ( )
pure virtual

Implemented in Discrete_PID.

Here is the caller graph for this function:

◆ compute()

virtual float PID_Algorithm::compute ( float  error,
uint32_t  dt_millis 
)
pure virtual

Implemented in Discrete_PID.

Here is the caller graph for this function:

◆ get_D()

float PID_Algorithm::get_D ( )
inline
Here is the caller graph for this function:

◆ get_I()

float PID_Algorithm::get_I ( )
inline
Here is the caller graph for this function:

◆ get_Lower()

float PID_Algorithm::get_Lower ( )
inline
Here is the caller graph for this function:

◆ get_P()

float PID_Algorithm::get_P ( )
inline
Here is the caller graph for this function:

◆ get_Upper()

float PID_Algorithm::get_Upper ( )
inline
Here is the caller graph for this function:

◆ set_D()

void PID_Algorithm::set_D ( float  d)
inline
Here is the caller graph for this function:

◆ set_I()

void PID_Algorithm::set_I ( float  i)
inline
Here is the caller graph for this function:

◆ set_Limits()

void PID_Algorithm::set_Limits ( float  max_out,
float  min_out 
)
inline

◆ set_P()

void PID_Algorithm::set_P ( float  p)
inline
Here is the caller graph for this function:

◆ set_PID()

void PID_Algorithm::set_PID ( float  p,
float  i,
float  d 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ d_

float PID_Algorithm::d_
protected

◆ i_

float PID_Algorithm::i_
protected

◆ max_

float PID_Algorithm::max_
protected

◆ min_

float PID_Algorithm::min_
protected

◆ p_

float PID_Algorithm::p_
protected

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