einfacher TP, TP1Ordn.cpp und .h sind wichtig

Dependencies:   Serial_HL mbed

Fork of ProcVisDemo by michael hollegha

Revision:
2:a8f3233502df
diff -r e88b745f2ca2 -r a8f3233502df TP1Ord.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TP1Ord.h	Wed May 03 16:04:57 2017 +0000
@@ -0,0 +1,23 @@
+#ifndef TP1Ord_h
+#define TP1Ord_h
+
+class TP1Ord{
+    public:
+        float y; //ausgangswert
+    private:
+        float _alpha, _beta; //Koeffizient für fg 
+    public:
+        TP1Ord();
+        
+    //einen Abtastschritt des Filters rechnen 
+    //es entsteht neues y
+   void CalcOneStep(float aX);
+   
+   
+   //fg(Zeitkonstante des Filters setzen
+   //aAlpha 0...1
+   void SetAlpha(float aAlpha);
+    
+};
+
+#endif
\ No newline at end of file