Compare commits
No commits in common. "922d6e85f06e8de2f309ee3b9e8360715173c9c5" and "36dd744da5048bcf25ffc3193477f452df4bf8a8" have entirely different histories.
922d6e85f0
...
36dd744da5
@ -41,14 +41,13 @@ public:
|
|||||||
boolean calibration(int poidsRef,int moyenne_calibration);
|
boolean calibration(int poidsRef,int moyenne_calibration);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief tar le capteur de poids
|
* @brief Set the Calibration Fact object
|
||||||
*
|
*
|
||||||
* @param[in] val valeur de référence du capteur
|
* @param caliFact facteur de calibration calculer par calibration
|
||||||
* @return true si la tarre a bien réussi (ou si il n'a pas besoins de tarre)
|
|
||||||
* @return false erreur durrant la tar
|
|
||||||
*/
|
*/
|
||||||
bool tar(int val = 0);
|
void setCalibrationFact(int caliFact);
|
||||||
|
|
||||||
|
//XXX: finir implémentation classe capteur
|
||||||
private:
|
private:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -49,9 +49,8 @@ String Balance::read() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Balance::tar(int val){
|
void Balance::setCalibrationFact(int caliFact){
|
||||||
this->initialized = true;
|
this->initialized = true;
|
||||||
this->calibrationFact = val;
|
this->calibrationFact = caliFact;
|
||||||
this->capteur->set_scale(val);
|
this->capteur->set_scale(caliFact);
|
||||||
return this->initialized;
|
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@ void Program::loop(){
|
|||||||
Serial.print("humiTemp = " + this->dht->read());
|
Serial.print("humiTemp = " + this->dht->read());
|
||||||
Serial.println(this->dht->isFull()?" true":" false");
|
Serial.println(this->dht->isFull()?" true":" false");
|
||||||
|
|
||||||
|
//TODO: Lire balance
|
||||||
//this->api->sendValue(poid, TRASHCAN_TWO, this->balance->getValType(), this->balance->isFull());
|
//this->api->sendValue(poid, TRASHCAN_TWO, this->balance->getValType(), this->balance->isFull());
|
||||||
Serial.print("humiTemp = " + this->dht->read());
|
Serial.print("humiTemp = " + this->dht->read());
|
||||||
Serial.println(this->dht->isFull()?" true":" false");
|
Serial.println(this->dht->isFull()?" true":" false");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user