23#ifndef __ANALOGCOMPONENT_HXX
24#define __ANALOGCOMPONENT_HXX 1
26#include <simgear/misc/inputvalue.hxx>
51 bool _feedback_if_disabled;
95 const std::string& cfg_name,
96 SGPropertyNode& prop_root )
override;
103 double clamp(
double value )
const;
110 void disabled(
double dt )
override;
134 value =
clamp( value );
135 for( simgear::PropertyList::iterator it =
_output_list.begin();
137 (*it)->setDoubleValue( value );
155 activeInput->set_value(
_output_list[0]->getDoubleValue());
simgear::PropertyList _output_list
SGPropertyNode_ptr _passive_mode
void set_output_value(double value)
const simgear::PeriodicalValue_ptr getPeriodicalValue() const
simgear::ValueList _valueInput
the value input
void disabled(double dt) override
overideable method being called from the update() method if this component is disabled.
bool configure(SGPropertyNode &cfg_node, const std::string &cfg_name, SGPropertyNode &prop_root) override
This method configures this analog component from a property node.
AnalogComponent()
A constructor for an analog component.
simgear::ValueList _referenceInput
the reference input
void collectDependentProperties(std::set< const SGPropertyNode * > &props) const
Add to <props> all properties that are used by this component.
double clamp(double value) const
clamp the given value if <min> and/or <max> inputs were given
simgear::ValueList _minInput
the minimum output clamp input
simgear::PeriodicalValue_ptr _periodical
the configuration for periodical outputs
double get_output_value() const
return the current double value of the output property
simgear::ValueList _maxInput
the maximum output clamp input
bool _honor_passive
a (historic) flag signalling the derived class that it should compute it's internal state but shall n...
Component()
A constructor for an empty Component.