SoftFilters  0.1.0
Arduino framework and library of software data filters.
types.h
1 #ifndef TYPES_H
2 #define TYPES_H
3 
11 template <typename VAL_T, typename TS_T=unsigned long>
12 class Reading
13 {
14 public:
15  VAL_T value;
16  TS_T timestamp;
17  Reading() : value(0), timestamp(0) {}
18  Reading(VAL_T v, TS_T ts) : value(v), timestamp(ts) { }
19 };
20 
27 template <typename T>
29 {
30 public:
31  T position;
32  T speed;
33  T acceleration;
34  Differential(T pos, T spd, T acc) : position(pos), speed(spd), acceleration(acc) { }
35  Differential(T val) : Differential(val, val, val) { }
36 };
37 
38 #endif
A class to represent the speed and acceleration of a value in addition to itself. ...
Definition: types.h:28
A class that contains a <value, timestamp> tuple.
Definition: types.h:12