Merge branch 'modifRad'
This commit is contained in:
commit
b23f800eff
2 changed files with 25 additions and 11 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include "../../../include/DigitalDevices/DigitalActuators/DigitalActuatorRadiator.h"
|
||||
|
||||
DigitalActuatorRadiator::DigitalActuatorRadiator(int temps, float threshold) : DigitalActuator(temps),
|
||||
threshold(threshold) {}
|
||||
DigitalActuatorRadiator::DigitalActuatorRadiator(int temps, float thresholdHigh, float thresholdLow) : DigitalActuator(temps),
|
||||
thresholdHigh(thresholdHigh), thresholdLow(thresholdLow) {}
|
||||
|
||||
void DigitalActuatorRadiator::activate() {
|
||||
DigitalDevice::state = HIGH;
|
||||
|
@ -23,10 +23,18 @@ void DigitalActuatorRadiator::Run() {
|
|||
}
|
||||
}
|
||||
|
||||
float DigitalActuatorRadiator::getThreshold() const {
|
||||
return threshold;
|
||||
float DigitalActuatorRadiator::getThresholdLow() const {
|
||||
return thresholdLow;
|
||||
}
|
||||
|
||||
void DigitalActuatorRadiator::setThreshold(float threshold) {
|
||||
DigitalActuatorRadiator::threshold = threshold;
|
||||
void DigitalActuatorRadiator::setThresholdLow(float thresholdLow) {
|
||||
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 {
|
||||
private:
|
||||
float threshold;
|
||||
public:
|
||||
DigitalActuatorRadiator(int temps, float threshold);
|
||||
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);
|
||||
|
||||
float getThreshold() const;
|
||||
void setThreshold(float threshold);
|
||||
void activate();
|
||||
void Run();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue