31 lines
721 B
C++
31 lines
721 B
C++
//
|
|
// Created by camer on 16/05/2020.
|
|
//
|
|
|
|
#ifndef PROJET_VICTORAVECUNK_DIGITALACTUATORRADIATOR_H
|
|
#define PROJET_VICTORAVECUNK_DIGITALACTUATORRADIATOR_H
|
|
|
|
|
|
#include "../DigitalDevice.h"
|
|
#include "../../../include/AnalogDevices/AnalogSensors/AnalogSensorTemperature.h"
|
|
|
|
class DigitalActuatorRadiator : public DigitalActuator {
|
|
private:
|
|
float thresholdHigh, thresholdLow;
|
|
|
|
public:
|
|
DigitalActuatorRadiator(int temps, float threshold, float thresholdLow);
|
|
|
|
float getThresholdHigh() const;
|
|
void setThresholdHigh(float threshold);
|
|
|
|
float getThresholdLow() const;
|
|
|
|
void setThresholdLow(float thresholdLow);
|
|
|
|
void activate();
|
|
void run();
|
|
};
|
|
|
|
|
|
#endif //PROJET_VICTORAVECUNK_DIGITALACTUATORRADIATOR_H
|