#ifndef __SAMPLING_H__
#define __SAMPLING_H__

#define AVERAGING_NUMBER 4

class CAveraging
{
public:
	double GetAveraging(void);
	void InsertNumber(double dResult);
	
private:
	double m_adArray[AVERAGING_NUMBER];
	int m_iTail;
};

extern void OnCurrent(void);

extern void OnVoltage(void);

extern void OnRTD(void);

extern CAveraging RawCurrent, RawVoltage, RawTermprature;

#endif
