#include <Relay.hpp>
Public Member Functions | |
double | getAmplitude () |
int | hasSwitched () |
Relay () | |
Relay (double C, double X) | |
Relay (double Cp, double Cm, double Xp, double Xm) | |
void | setAmplitude (double C) |
void | setAmplitude (double Cp, double Cm) |
void | setHysteresis (double X) |
void | setHysteresis (double Xp, double Xm) |
double | step (double input) |
~Relay () | |
Private Attributes | |
double | Cm |
double | Cp |
double | out |
bool | switched |
double | Xam |
double | Xap |
The class implements a simple relay switch. This can be used for bang-bang control.
labust::control::Relay::Relay | ( | ) | [inline] |
labust::control::Relay::Relay | ( | double | C, |
double | X | ||
) | [inline] |
labust::control::Relay::Relay | ( | double | Cp, |
double | Cm, | ||
double | Xp, | ||
double | Xm | ||
) | [inline] |
labust::control::Relay::~Relay | ( | ) | [inline] |
double labust::control::Relay::getAmplitude | ( | ) | [inline] |
int labust::control::Relay::hasSwitched | ( | ) | [inline] |
void labust::control::Relay::setAmplitude | ( | double | C | ) | [inline] |
void labust::control::Relay::setAmplitude | ( | double | Cp, |
double | Cm | ||
) | [inline] |
void labust::control::Relay::setHysteresis | ( | double | X | ) | [inline] |
void labust::control::Relay::setHysteresis | ( | double | Xp, |
double | Xm | ||
) | [inline] |
double labust::control::Relay::step | ( | double | input | ) | [inline] |
double labust::control::Relay::Cm [private] |
double labust::control::Relay::Cp [private] |
double labust::control::Relay::out [private] |
bool labust::control::Relay::switched [private] |
double labust::control::Relay::Xam [private] |
double labust::control::Relay::Xap [private] |