SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
|
A Transform base class that translates the value of type C into value of type P. Base class for classes FloatThreshold and IntThreshold. More...
#include <sensesp/transforms/threshold.h>
Protected Attributes | |
C | min_value_ |
C | max_value_ |
P | in_range_ |
Protected Attributes inherited from sensesp::Configurable | |
String | description_ = "" |
int | sort_order_ = 1000 |
Protected Attributes inherited from sensesp::ValueProducer< P > | |
P | output |
Additional Inherited Members | |
Static Public Member Functions inherited from sensesp::TransformBase | |
static const std::set< TransformBase * > & | get_transforms () |
Static Public Member Functions inherited from sensesp::Startable | |
static void | start_all () |
Public Attributes inherited from sensesp::Configurable | |
const String | config_path_ |
Protected Member Functions inherited from sensesp::Configurable | |
virtual void | load_configuration () |
A Transform base class that translates the value of type C into value of type P. Base class for classes FloatThreshold and IntThreshold.
min_value | Minimum value of input for output to be the value of in_range. |
max_value | Maximum value of input for output to be the value of in_range. |
in_range | Output value if input value is in range. |
Definition at line 20 of file threshold.h.
|
overridevirtual |
Used to set an input of this consumer. It is usually called automatically by a ValueProducer.
new_value | the value of the input |
input_channel | Consumers can have one or more inputs feeding them. This parameter allows you to specify which input number the producer is connecting to. For single input consumers, leave the index at zero. |
Reimplemented from sensesp::ValueConsumer< C >.
Definition at line 6 of file threshold.cpp.
Definition at line 34 of file threshold.h.
Definition at line 33 of file threshold.h.
Definition at line 32 of file threshold.h.