SensESP
3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
linear.h
Go to the documentation of this file.
1
#ifndef SENSESP_TRANSFORMS_LINEAR_H_
2
#define SENSESP_TRANSFORMS_LINEAR_H_
3
4
#include "
lambda_transform.h
"
5
6
namespace
sensesp
{
7
18
class
Linear
:
public
LambdaTransform
<float, float, float, float> {
19
public
:
20
Linear
(
float
multiplier,
float
offset,
const
String& config_path =
""
);
21
22
private
:
23
static
float (*function_)(float, float, float);
24
static
const
ParamInfo
param_info_[];
25
};
26
27
}
// namespace sensesp
28
29
#endif
sensesp::LambdaTransform
Construct a new transform based on a single function.
Definition
lambda_transform.h:42
sensesp::Linear
Performs a linear transform on the input value: output_ = (input * multiplier) + offset.
Definition
linear.h:18
sensesp::Linear::Linear
Linear(float multiplier, float offset, const String &config_path="")
Definition
linear.cpp:19
lambda_transform.h
sensesp
Definition
sensesp.cpp:7
sensesp::ParamInfo
Definition
lambda_transform.h:14
src
sensesp
transforms
linear.h
Generated by
1.12.0