|
RCKit
|
Setter class that implements linear transform of its input value. More...
#include <Linear.h>


Public Member Functions | |
| Linear (float gain, int offset) | |
| virtual void | input (int value) |
Public Member Functions inherited from Setter | |
| Setter () | |
| Constructor. More... | |
| Setter (Setter *target) | |
| Constructor with setting the target. | |
| virtual void | setTarget (Setter *target) |
| virtual void | failsafe () |
| void | setFailsafeValue (int failsafeValue) |
| Sets the failsafeValue. | |
| int | failsafeValue () |
Additional Inherited Members | |
Protected Attributes inherited from Setter | |
| Setter * | _target |
| This is the instance of Setter that will be given the transfotmed output value. | |
| int | _failsafeValue |
Setter class that implements linear transform of its input value.
Linear implements a y = mx + x linear transform of the input value. The resulting output value is sent to the next Setter (the target) in the chain.
| Linear::Linear | ( | float | gain, |
| int | offset | ||
| ) |
Constructor. Output will be calculated according to out = (in * gain) + offset
|
virtual |
Input the value to be transformed
| [in] | value | The input value |
Reimplemented from Setter.
References Setter::input().
1.8.17