87 double HalfWidth = 0.5*Width;
89 if (
Input < -HalfWidth) {
91 }
else if (
Input > HalfWidth) {
122void FGDeadBand::Debug(
int from)
128 cout <<
" INPUT: " <<
InputNodes[0]->GetName() << endl;
129 cout <<
" DEADBAND WIDTH: " << Width->GetName() << endl;
130 cout <<
" GAIN: " << gain << endl;
133 cout <<
" OUTPUT: " << node->getNameString() << endl;
137 if (from == 0) cout <<
"Instantiated: FGDeadBand" << endl;
138 if (from == 1) cout <<
"Destroyed: FGDeadBand" << endl;
double FindElementValueAsNumber(const std::string &el="")
Searches for the named element and returns the data belonging to it as a number.
Element * FindElement(const std::string &el="")
Searches for a specified element.
FGDeadBand(FGFCS *fcs, Element *element)
FGFCSComponent(FGFCS *fcs, Element *el)
Constructor.
std::vector< FGPropertyValue_ptr > InputNodes
void CheckInputNodes(size_t MinNodes, size_t MaxNodes, Element *el)
FGPropertyManager * PropertyManager
virtual void bind(Element *el)
virtual void SetOutput(void)
std::vector< FGPropertyNode_ptr > OutputNodes
Represents a either a real value or a property value.