modif radiator
This commit is contained in:
parent
26c01c1dbe
commit
2933bf6852
2 changed files with 25 additions and 11 deletions
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
#include "../../../include/DigitalDevices/DigitalActuators/DigitalActuatorRadiator.h"
|
#include "../../../include/DigitalDevices/DigitalActuators/DigitalActuatorRadiator.h"
|
||||||
|
|
||||||
DigitalActuatorRadiator::DigitalActuatorRadiator(int temps, float threshold) : DigitalActuator(temps),
|
DigitalActuatorRadiator::DigitalActuatorRadiator(int temps, float thresholdHigh, float thresholdLow) : DigitalActuator(temps),
|
||||||
threshold(threshold) {}
|
thresholdHigh(thresholdHigh), thresholdLow(thresholdLow) {}
|
||||||
|
|
||||||
void DigitalActuatorRadiator::activate() {
|
void DigitalActuatorRadiator::activate() {
|
||||||
DigitalDevice::state = HIGH;
|
DigitalDevice::state = HIGH;
|
||||||
|
@ -23,10 +23,18 @@ void DigitalActuatorRadiator::Run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float DigitalActuatorRadiator::getThreshold() const {
|
float DigitalActuatorRadiator::getThresholdLow() const {
|
||||||
return threshold;
|
return thresholdLow;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DigitalActuatorRadiator::setThreshold(float threshold) {
|
void DigitalActuatorRadiator::setThresholdLow(float thresholdLow) {
|
||||||
DigitalActuatorRadiator::threshold = threshold;
|
DigitalActuatorRadiator::thresholdLow = thresholdLow;
|
||||||
|
}
|
||||||
|
|
||||||
|
float DigitalActuatorRadiator::getThresholdHigh() const {
|
||||||
|
return thresholdHigh;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DigitalActuatorRadiator::setThresholdHigh(float threshold) {
|
||||||
|
DigitalActuatorRadiator::thresholdHigh = threshold;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,12 +11,18 @@
|
||||||
|
|
||||||
class DigitalActuatorRadiator : public DigitalActuator {
|
class DigitalActuatorRadiator : public DigitalActuator {
|
||||||
private:
|
private:
|
||||||
float threshold;
|
float thresholdHigh, thresholdLow;
|
||||||
public:
|
|
||||||
DigitalActuatorRadiator(int temps, float threshold);
|
public:
|
||||||
|
DigitalActuatorRadiator(int temps, float threshold, float thresholdLow);
|
||||||
|
|
||||||
|
float getThresholdHigh() const;
|
||||||
|
void setThresholdHigh(float threshold);
|
||||||
|
|
||||||
|
float getThresholdLow() const;
|
||||||
|
|
||||||
|
void setThresholdLow(float thresholdLow);
|
||||||
|
|
||||||
float getThreshold() const;
|
|
||||||
void setThreshold(float threshold);
|
|
||||||
void activate();
|
void activate();
|
||||||
void Run();
|
void Run();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue