Compare commits
No commits in common. "b23f800effed8e8ac8ed5ae73636983d47051bd5" and "04d5350d30437f2ad704859d49414a8b586f3e41" have entirely different histories.
b23f800eff
...
04d5350d30
2 changed files with 10 additions and 24 deletions
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
#include "../../../include/DigitalDevices/DigitalActuators/DigitalActuatorRadiator.h"
|
#include "../../../include/DigitalDevices/DigitalActuators/DigitalActuatorRadiator.h"
|
||||||
|
|
||||||
DigitalActuatorRadiator::DigitalActuatorRadiator(int temps, float thresholdHigh, float thresholdLow) : DigitalActuator(temps),
|
DigitalActuatorRadiator::DigitalActuatorRadiator(int temps, float threshold) : DigitalActuator(temps),
|
||||||
thresholdHigh(thresholdHigh), thresholdLow(thresholdLow) {}
|
threshold(threshold) {}
|
||||||
|
|
||||||
void DigitalActuatorRadiator::activate() {
|
void DigitalActuatorRadiator::activate() {
|
||||||
DigitalDevice::state = HIGH;
|
DigitalDevice::state = HIGH;
|
||||||
|
|
@ -23,18 +23,10 @@ void DigitalActuatorRadiator::Run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float DigitalActuatorRadiator::getThresholdLow() const {
|
float DigitalActuatorRadiator::getThreshold() const {
|
||||||
return thresholdLow;
|
return threshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DigitalActuatorRadiator::setThresholdLow(float thresholdLow) {
|
void DigitalActuatorRadiator::setThreshold(float threshold) {
|
||||||
DigitalActuatorRadiator::thresholdLow = thresholdLow;
|
DigitalActuatorRadiator::threshold = threshold;
|
||||||
}
|
|
||||||
|
|
||||||
float DigitalActuatorRadiator::getThresholdHigh() const {
|
|
||||||
return thresholdHigh;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DigitalActuatorRadiator::setThresholdHigh(float threshold) {
|
|
||||||
DigitalActuatorRadiator::thresholdHigh = threshold;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,18 +11,12 @@
|
||||||
|
|
||||||
class DigitalActuatorRadiator : public DigitalActuator {
|
class DigitalActuatorRadiator : public DigitalActuator {
|
||||||
private:
|
private:
|
||||||
float thresholdHigh, thresholdLow;
|
float threshold;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DigitalActuatorRadiator(int temps, float threshold, float thresholdLow);
|
DigitalActuatorRadiator(int temps, float threshold);
|
||||||
|
|
||||||
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