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