Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Filter by
Diff: Filter.h
- Revision:
- 5:ab6351c18264
- Parent:
- 4:fc9412c8334e
- Child:
- 6:13ff4bea3c83
--- a/Filter.h Mon Jan 15 01:57:38 2018 +0000
+++ b/Filter.h Tue Jan 16 15:56:33 2018 +0000
@@ -12,12 +12,15 @@
Filter(double);
void setLowPassPara(double T, double init_data);
double LowPassFilter(double input);
- void setNotchPara(double Omega);
+ void setNotchPara(double Omega, double init_data);
double NotchFilter(double input);
private:
double int_time;
double preOutput;
bool set_t;
+
+ double n_preOutput[2];
+ double n_preInput[2];
};
\ No newline at end of file
