You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
343 B

#ifndef ModeFilter_h
#define ModeFilter_h
#define MOD_FILTER_SIZE 6
#include <inttypes.h>
class ModeFilter
{
private:
public:
ModeFilter();
int get_filtered_with_sample(int _sample);
int16_t _samples[MOD_FILTER_SIZE];
private:
void isort();
int16_t mode();
int8_t _sample_index;
};
#endif