Skip to content

Commit

Permalink
Merge pull request jeroendoggen#14 from jeroendoggen/refactoring
Browse files Browse the repository at this point in the history
Refactoring
  • Loading branch information
jeroendoggen committed Apr 2, 2015
2 parents 118ebb6 + de3659e commit ef8b188
Show file tree
Hide file tree
Showing 33 changed files with 120 additions and 3,946 deletions.
20 changes: 1 addition & 19 deletions Filter/Filter.cpp
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>

Expand All @@ -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(" - ");
}
9 changes: 2 additions & 7 deletions Filter/Filter.h
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
Expand All @@ -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
21 changes: 0 additions & 21 deletions Filter/MedianFilter.h

This file was deleted.

Loading

0 comments on commit ef8b188

Please sign in to comment.