forked from jeroendoggen/Arduino-signal-filtering-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jeroendoggen#14 from jeroendoggen/refactoring
Refactoring
- Loading branch information
Showing
33 changed files
with
120 additions
and
3,946 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Arduino Signal Filtering Library | ||
// Copyright 2012-2013 Jeroen Doggen ([email protected])) | ||
// Copyright 2012-2015 Jeroen Doggen ([email protected])) | ||
|
||
#include <Arduino.h> | ||
|
||
|
@@ -15,22 +15,4 @@ | |
/// Constructor | ||
Filter::Filter() | ||
{ | ||
_x[0]=0; | ||
_x[1]=0; | ||
_x[2]=0; | ||
_average=0; | ||
} | ||
|
||
/// printSamples: Print out some samples (for debugging) | ||
void Filter::printSamples() | ||
{ | ||
Serial.print(" "); | ||
Serial.print(_x[2]); | ||
|
||
Serial.print(" "); | ||
Serial.print(_x[1]); | ||
|
||
Serial.print(" "); | ||
Serial.print(_x[0]); | ||
Serial.print(" - "); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Arduino Signal Filtering Library | ||
// Copyright 2012-2013 Jeroen Doggen ([email protected]) | ||
// Copyright 2012-2015 Jeroen Doggen ([email protected]) | ||
|
||
#ifndef Filter_h | ||
#define Filter_h | ||
|
@@ -12,12 +12,7 @@ class Filter | |
public: | ||
Filter(); | ||
|
||
protected: | ||
int _average; | ||
int _x[3]; | ||
|
||
private: | ||
virtual int run(int data)=0; | ||
void printSamples(); | ||
virtual void printSamples()=0; | ||
}; | ||
#endif |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.