DerivativeFilter: update and slope non-virtual

No classes inherit from DerivativeFilter so no need to be virtual.
Saves 4bytes of RAM.
This commit is contained in:
Randy Mackay 2014-02-10 20:38:59 +09:00
parent 4040be9990
commit 38222d65e9

View File

@ -36,10 +36,10 @@ public:
};
// update - Add a new raw value to the filter, but don't recalculate
virtual void update(T sample, uint32_t timestamp);
void update(T sample, uint32_t timestamp);
// return the derivative value
virtual float slope(void);
float slope(void);
// reset - clear the filter
virtual void reset();