Compare commits
No commits in common. "79d5ecde9e2191ff8f5ff5038510071f6888e2ac" and "19b716aaf2c13fec77e82bad1618701e4c25f736" have entirely different histories.
79d5ecde9e
...
19b716aaf2
@ -18,49 +18,7 @@ Class Program {
|
|||||||
+ setup()
|
+ setup()
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract Class Capteur {
|
|
||||||
# full: bool
|
|
||||||
# type: String
|
|
||||||
# fullVall: String
|
|
||||||
+ Capteur(type: String, fullVal: String)
|
|
||||||
+ {abstract} tar(val: int): bool
|
|
||||||
+ {abstract} read(): String = 0
|
|
||||||
+ isFull(): bool
|
|
||||||
+ getValType(): String
|
|
||||||
}
|
|
||||||
|
|
||||||
class Balance{
|
|
||||||
- capteur: HX711*
|
|
||||||
- initialized: bool
|
|
||||||
- calibrationFact: int
|
|
||||||
- initialVal: long
|
|
||||||
+ Balance(doutPin: int, sck: int, fullVal:String)
|
|
||||||
+ read(): String
|
|
||||||
+ initCalibration(): bool
|
|
||||||
+ calibration(poidsRef: int, moyenneCalibration: int): bool
|
|
||||||
+ tar(val: int = 0): bool
|
|
||||||
}
|
|
||||||
|
|
||||||
class Ultrason{
|
|
||||||
- capteur: DHT*
|
|
||||||
+ HumiTemp(pin: int, type: String, fullVal: String)
|
|
||||||
+ read(): String
|
|
||||||
}
|
|
||||||
|
|
||||||
class Ultrason{
|
|
||||||
- capteur: Ultrasonic*
|
|
||||||
+ Ultrason(triguer: int, echo: int, fullVal: String)
|
|
||||||
+ read(): String
|
|
||||||
}
|
|
||||||
|
|
||||||
Balance --|> Capteur
|
|
||||||
Ultrason --|> Capteur
|
|
||||||
HumiTemp --|> Capteur
|
|
||||||
|
|
||||||
|
|
||||||
Program <-- Balance
|
|
||||||
Program <-- Ultrason
|
|
||||||
Program <-- HumiTemp
|
|
||||||
|
|
||||||
|
|
||||||
@enduml
|
@enduml
|
@ -28,7 +28,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief tare et scale a 0, et recuperation de la valeur brut du plateau
|
* @brief tare et scale a 0, et recuperation de la valeur brut du plateau
|
||||||
*/
|
*/
|
||||||
bool initCalibration();
|
boolean initCalibration();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief initialisation du calibrage
|
* @brief initialisation du calibrage
|
||||||
@ -38,7 +38,7 @@ public:
|
|||||||
*
|
*
|
||||||
* @return renvoi un true si calibration bien effectue
|
* @return renvoi un true si calibration bien effectue
|
||||||
*/
|
*/
|
||||||
bool calibration(int poidsRef,int moyenne_calibration);
|
boolean calibration(int poidsRef,int moyenne_calibration);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief tar le capteur de poids
|
* @brief tar le capteur de poids
|
||||||
@ -59,7 +59,7 @@ private:
|
|||||||
/**
|
/**
|
||||||
* @brief true = calibration et false = erreur
|
* @brief true = calibration et false = erreur
|
||||||
*/
|
*/
|
||||||
bool initialized;
|
boolean initialized;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Facteur de calibration obtenu par : (val brute poids ref - val brute poids plexiglas)/ poids ref
|
* @brief Facteur de calibration obtenu par : (val brute poids ref - val brute poids plexiglas)/ poids ref
|
||||||
|
Loading…
x
Reference in New Issue
Block a user