fin jour 16/05
This commit is contained in:
parent
984dddb88b
commit
26c01c1dbe
3 changed files with 14 additions and 5 deletions
|
@ -22,3 +22,11 @@ void DigitalActuatorRadiator::Run() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
float DigitalActuatorRadiator::getThreshold() const {
|
||||
return threshold;
|
||||
}
|
||||
|
||||
void DigitalActuatorRadiator::setThreshold(float threshold) {
|
||||
DigitalActuatorRadiator::threshold = threshold;
|
||||
}
|
||||
|
|
|
@ -15,15 +15,13 @@
|
|||
|
||||
// exemple de capteur analogique de temperature, ne pas oublier d'heriter de Device
|
||||
class AnalogSensorTemperature: public AnalogDevice {
|
||||
private:
|
||||
static int alea;
|
||||
public:
|
||||
// fait osciller la valeur du cpateur de 1
|
||||
static int alea; //TODO modifier dans diagramme de classe
|
||||
|
||||
//constructeur ne pas oublier d'initialiser la classe mere
|
||||
AnalogSensorTemperature(int d,int t);
|
||||
|
||||
static void setAlea(int alea); //TODO mettre dans diagramme de classe
|
||||
|
||||
static void setAlea(int alea);
|
||||
// thread representant le capteur et permettant de fonctionner independamment de la board
|
||||
virtual void run();
|
||||
};
|
||||
|
|
|
@ -14,6 +14,9 @@ private:
|
|||
float threshold;
|
||||
public:
|
||||
DigitalActuatorRadiator(int temps, float threshold);
|
||||
|
||||
float getThreshold() const;
|
||||
void setThreshold(float threshold);
|
||||
void activate();
|
||||
void Run();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue