1 #ifndef ORG_EEROS_CONTROL_SUM_HPP_
2 #define ORG_EEROS_CONTROL_SUM_HPP_
12 template < u
int8_t N = 2,
typename T =
double >
17 for(uint8_t
i = 0;
i < N;
i++) {
24 for(uint8_t
i = 0;
i < N;
i++) {
26 else sum +=
in[
i].getSignal().getValue();
28 out.getSignal().setValue(sum);
29 out.getSignal().setTimestamp(
in[0].getSignal().getTimestamp());
Sum()
Definition: Sum.hpp:16
virtual void negateInput(uint8_t index)
Definition: Sum.hpp:41
Output< T > out
Definition: Sum.hpp:47
virtual Output< T > & getOut()
Definition: Sum.hpp:36
Input< T > in[N]
Definition: Sum.hpp:46
bool negated[N]
Definition: Sum.hpp:48
Definition: Output.hpp:10
int i
Definition: RingBufferTest.cpp:12
virtual void run()
Definition: Sum.hpp:22
virtual Input< T > & getIn(uint8_t index)
Definition: Sum.hpp:32