>> (flow)
Sends data across units from left to right. This operator is specific to Plaquette and can be used in a chained manner.
The operation uses the get() and put() methods of units in such a way that:
input >> output;
is equivalent to:
output.put(input.get());
Numerical and boolean values can also be used:
12 >> output;
0.8 >> output;
true >> output;
Example
#include <Plaquette.h>
AnalogIn sensor(A0);
MinMaxScaler scaler;
Plotter plotter(115200);
AnalogOut led(9);
void step() {
// Rescale value and send the result to LED.
sensor >> scaler >> led;
// You can also use flow operators to stream data to a Plotter.
sensor >> plotter; // prints sensor value
scaler >> plotter; // prints rescaled value
}
Syntax
input >> output
input >> filter >> output