einfacher TP, TP1Ordn.cpp und .h sind wichtig
Fork of ProcVisDemo by
Diff: TP1Ord.h
- Revision:
- 2:a8f3233502df
--- /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