#include <bhcontroller.h>
Inheritance diagram for BHPDController:
Public Member Functions | |
BHPDController (const double pfactor, const double dfactor) | |
double | getDFactor () |
double | getOutput (const double error) |
double | getPFactor () |
void | setDFactor (const double factor) |
void | setPFactor (const double factor) |
void | showValues () |
This class implements a PD-Controller.
BHPDController::BHPDController | ( | const double | pfactor, | |
const double | dfactor | |||
) | [inline] |
Constructor.
pfactor | Factor for p-controller output. | |
dfactor | Factor for d-controller output. |
double BHPDController::getDFactor | ( | ) | [inline] |
Returns the factor for the D-Controller
Here is the call graph for this function:
double BHPDController::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 BHPDController::getPFactor | ( | ) | [inline] |
Returns the factor for the P-Controller
Here is the call graph for this function:
void BHPDController::setDFactor | ( | const double | factor | ) | [inline] |
Sets factor for D-Controller
factor | Factor for D-Controller. |
Here is the call graph for this function:
void BHPDController::setPFactor | ( | const double | factor | ) | [inline] |
Sets factor for P-Controller
factor | Factor for P-Controller. |
Here is the call graph for this function:
void BHPDController::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:21 2006 by
![]() |