#include <bhcontroller.h>
Inheritance diagram for BHPIDController:


Public Member Functions | |
| BHPIDController (const double pfactor, const double dfactor, const double ifactor, const int size=1) | |
| double | getDFactor () |
| double | getIFactor () |
| double | getOutput (const double error) |
| double | getPFactor () |
| void | setDFactor (const double factor) |
| void | setIFactor (const double factor) |
| void | setPFactor (const double factor) |
| void | showValues () |
This class implements a PID-Controller.
| BHPIDController::BHPIDController | ( | const double | pfactor, | |
| const double | dfactor, | |||
| const double | ifactor, | |||
| const int | size = 1 | |||
| ) | [inline] |
Constructor.
| pfactor | Factor for p-controller output. | |
| dfactor | Factor for d-controller output. | |
| ifactor | Factor for i-controller output. | |
| size | Size over how many steps the Integration is done. |
| double BHPIDController::getDFactor | ( | ) | [inline] |
Returns the factor for the D-Controller
Here is the call graph for this function:

| double BHPIDController::getIFactor | ( | ) | [inline] |
Returns the factor for the I-Controller
Here is the call graph for this function:

| double BHPIDController::getOutput | ( | const double | error | ) | [inline, virtual] |
Computes the output of the controller
| error | Error of measurement between current and desired value |
Reimplemented from BHPController.
Here is the call graph for this function:

| double BHPIDController::getPFactor | ( | ) | [inline] |
Returns the factor for the P-Controller
Here is the call graph for this function:

| void BHPIDController::setDFactor | ( | const double | factor | ) | [inline] |
Sets factor for D-Controller
| factor | Factor for D-Controller. |
Here is the call graph for this function:

| void BHPIDController::setIFactor | ( | const double | factor | ) | [inline] |
Sets factor for I-Controller
| factor | Factor for I-Controller. |
Here is the call graph for this function:

| void BHPIDController::setPFactor | ( | const double | factor | ) | [inline] |
Sets factor for P-Controller
| factor | Factor for P-Controller. |
Here is the call graph for this function:

| void BHPIDController::showValues | ( | ) | [inline] |
Prints all values (factors and integation size) to stdout
Here is the call graph for this function:

|
|
Generated Wed Aug 16 15:00:35 2006 by
|