zhaw_st16b_pes2_10 / Mbed 2 deprecated Pixy

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

PID_Control Class Reference

PID_Control Class Reference

This class calculates a PID control. More...

#include <PID_Control.h>

Public Member Functions

 PID_Control ()
 Constructor.
virtual ~PID_Control ()
 Destructor.
float calc (float e, float period)
 Calculate and returns the next value from PID control.
void setPIDValues (float p, float i, float d, float max, float min, float _iMax)
 Sets the PID values.

Detailed Description

This class calculates a PID control.

Definition at line 14 of file PID_Control.h.


Constructor & Destructor Documentation

PID_Control (  )

Constructor.

Definition at line 13 of file PID_Control.cpp.

~PID_Control (  ) [virtual]

Destructor.

Definition at line 23 of file PID_Control.cpp.


Member Function Documentation

float calc ( float  e,
float  period 
)

Calculate and returns the next value from PID control.

Parameters:
ethe error
periodthe period
Returns:

Definition at line 50 of file PID_Control.cpp.

void setPIDValues ( float  p,
float  i,
float  d,
float  _max,
float  _min,
float  _iMax 
)

Sets the PID values.

Parameters:
pproportional gain
iintegral gain
ddifferencial gain

Definition at line 33 of file PID_Control.cpp.