sfbsg

Dependencies:   mbed

Revision:
0:8ab621116ccd
diff -r 000000000000 -r 8ab621116ccd LinearCharacteristics.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LinearCharacteristics.h	Tue Apr 03 15:17:11 2018 +0000
@@ -0,0 +1,34 @@
+#ifndef LINEAR_CHARACTERISTICS_H_
+#define LINEAR_CHARACTERISTICS_H_
+
+#include <cstdlib>
+#include <mbed.h>
+
+// Linear Characteristics for different purposes (map Voltage to acc etc.)
+class LinearCharacteristics
+{
+public:
+
+    LinearCharacteristics(float k, float offset, float min, float max);
+    float trans(float input);
+
+//    float operator()(float input) {
+//        return trans(input);
+//    }
+    //...
+    //...
+    virtual     ~LinearCharacteristics();
+    // here: the calculation function
+
+
+private:
+    // here: private functions and values...
+    float k;
+    float offset;
+    float output;
+    float min;
+    float max;
+
+};
+
+#endif
\ No newline at end of file