Commit cb2d89f8 authored by João Lino's avatar João Lino

sync with owncloud

parent 093e6051
This diff is collapsed.
...@@ -25,21 +25,15 @@ class PT100 ...@@ -25,21 +25,15 @@ class PT100
// PT100(PT100_OUTPUT_PIN, PT100_INPUT_PIN, PT100_TIME_BETWEEN_READINGS, PT100_DEFAULT_ADC_VMAX, PT100_DEFAULT_VS, PT100_DEFAULT_R1_RESISTENCE, PT100_DEFAULT_LINE_RESISTENCE, PT100_DEFAULT_OPERATION_RESISTENCE); // PT100(PT100_OUTPUT_PIN, PT100_INPUT_PIN, PT100_TIME_BETWEEN_READINGS, PT100_DEFAULT_ADC_VMAX, PT100_DEFAULT_VS, PT100_DEFAULT_R1_RESISTENCE, PT100_DEFAULT_LINE_RESISTENCE, PT100_DEFAULT_OPERATION_RESISTENCE);
PT100(char *name, PT100(char *name,
int OutputPin_SensorPower, int OutputPin_SensorPower,
int OutputPin_ThirdLinePower,
int InputPin_TemperatureReading, int InputPin_TemperatureReading,
int InputPin_ThirdLineReading,
int TimeBetweenReadings = 100, int TimeBetweenReadings = 100,
float ADCVmax = 1.081, float ADCVmax = 1.081,
float Vs = 4.87, float Vs = 4.87,
float R1 = 606.0, float R1 = 606.0);
float R2 = 606.0,
float m = 1.0,
float b = 0.0);
void setPower(float ADCVmax = 1.081, float Vs = 4.87); void setPower(float ADCVmax = 1.081, float Vs = 4.87);
void measure(boolean ln); void measure(boolean ln);
void measure1(boolean ln, boolean rline);
void safeHardwarePowerOff(); void safeHardwarePowerOff();
float getCurrentTemperature(); float getCurrentTemperature();
...@@ -52,16 +46,11 @@ class PT100 ...@@ -52,16 +46,11 @@ class PT100
private: private:
char *_name; char *_name;
int _OutputPin_SensorPower; int _OutputPin_SensorPower;
int _OutputPin_ThirdLinePower;
int _InputPin_TemperatureReading; int _InputPin_TemperatureReading;
int _InputPin_ThirdLineReading;
int _TimeBetweenReadings; int _TimeBetweenReadings;
float _ADCVmax; float _ADCVmax;
float _Vs; float _Vs;
float _R1; float _R1;
float _R2;
float __m;
float __b;
float _temperatureAverage; float _temperatureAverage;
float _measuredTemperature; float _measuredTemperature;
...@@ -73,12 +62,9 @@ class PT100 ...@@ -73,12 +62,9 @@ class PT100
float _VoutPreviousAnalogSample; float _VoutPreviousAnalogSample;
int _temperatureMeasurementsMarker; int _temperatureMeasurementsMarker;
int _rPT100MeasurementsMarker; int _rPT100MeasurementsMarker;
int _rLineMeasurementsMarker;
float _temperatureMeasurements[TEMPERATURE_AVERAGE_VALUE_I] = {TEMPERATURE_AVERATE_INIT_VALUES}; float _temperatureMeasurements[TEMPERATURE_AVERAGE_VALUE_I] = {TEMPERATURE_AVERATE_INIT_VALUES};
int _rPT100Measurements[TEMPERATURE_AVERAGE_VALUE_I] = {TEMPERATURE_AVERATE_INIT_VALUES_I}; int _rPT100Measurements[TEMPERATURE_AVERAGE_VALUE_I] = {TEMPERATURE_AVERATE_INIT_VALUES_I};
int _rLineMeasurements[TEMPERATURE_AVERAGE_VALUE_I] = {TEMPERATURE_AVERATE_INIT_VALUES_I};
void xFilterNoise( int position );
float GetMedian(int array[]); float GetMedian(int array[]);
float GetMode(float array[]); float GetMode(float array[]);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment