Reorganisation classes 4.0 + TODO
This commit is contained in:
parent
11684c6257
commit
b25052ecaf
2 changed files with 14 additions and 12 deletions
|
@ -41,11 +41,9 @@ void AnalogSensorTemperature::run(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//int AnalogSensorLuminosity::luminosite_environnement = 200;
|
//AnalogSensorLuminosity ///////////////////////////
|
||||||
|
AnalogSensorLuminosity::AnalogSensorLuminosity(int temps):AnalogDevice(200, temps){}
|
||||||
|
|
||||||
AnalogSensorLuminosity::AnalogSensorLuminosity(int t):Device(), temps(t){
|
|
||||||
|
|
||||||
}
|
|
||||||
void AnalogSensorLuminosity::run(){
|
void AnalogSensorLuminosity::run(){
|
||||||
while(1){
|
while(1){
|
||||||
val = luminosite_environnement;
|
val = luminosite_environnement;
|
||||||
|
@ -61,7 +59,7 @@ IntelligentDigitalActuatorLED::IntelligentDigitalActuatorLED(int t):DigitalDevic
|
||||||
}
|
}
|
||||||
|
|
||||||
void IntelligentDigitalActuatorLED::run(){
|
void IntelligentDigitalActuatorLED::run(){
|
||||||
int previousState = LOW; //initialisée a eteint
|
int previousState = LOW; //initialisee a eteint
|
||||||
while(1){
|
while(1){
|
||||||
if(ptrmem!=NULL)
|
if(ptrmem!=NULL)
|
||||||
state=*ptrmem;
|
state=*ptrmem;
|
||||||
|
@ -125,7 +123,15 @@ void ExternalDigitalSensorButton::run() {
|
||||||
sleep(temps);
|
sleep(temps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//
|
//TODO Capteur de temperature a revoir avec conditions
|
||||||
|
//TODO Electrovanne / moteur (a voir food)
|
||||||
|
//TODO Radiateur rechauffer terrarium
|
||||||
|
//TODO PHmetre pour qualite de l'eau
|
||||||
|
//TODO regarder les manometre
|
||||||
|
//TODO Electrovanne pour remplir la piscine
|
||||||
|
|
||||||
|
//TODO Ecran d'affichage avec infos de temps, derniere bouffe, infos sur tortues
|
||||||
|
//TODO Bouton pour sauter prochaine bouffe (I2C)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -49,13 +49,9 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class AnalogSensorLuminosity: public Device{
|
class AnalogSensorLuminosity: public AnalogDevice{
|
||||||
private:
|
|
||||||
int temps;
|
|
||||||
int val;
|
|
||||||
//static int luminosite_environnement;
|
|
||||||
public:
|
public:
|
||||||
//static int luminosite_environnement;
|
|
||||||
AnalogSensorLuminosity(int t);
|
AnalogSensorLuminosity(int t);
|
||||||
virtual void run();
|
virtual void run();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue