Compare commits
4 Commits
19b716aaf2
...
79d5ecde9e
Author | SHA1 | Date | |
---|---|---|---|
79d5ecde9e | |||
e4cf250092 | |||
fa43f37279 | |||
2708df56a6 |
@ -18,7 +18,49 @@ Class Program {
|
||||
+ 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
|
@ -28,7 +28,7 @@ public:
|
||||
/**
|
||||
* @brief tare et scale a 0, et recuperation de la valeur brut du plateau
|
||||
*/
|
||||
boolean initCalibration();
|
||||
bool initCalibration();
|
||||
|
||||
/**
|
||||
* @brief initialisation du calibrage
|
||||
@ -38,7 +38,7 @@ public:
|
||||
*
|
||||
* @return renvoi un true si calibration bien effectue
|
||||
*/
|
||||
boolean calibration(int poidsRef,int moyenne_calibration);
|
||||
bool calibration(int poidsRef,int moyenne_calibration);
|
||||
|
||||
/**
|
||||
* @brief tar le capteur de poids
|
||||
@ -59,7 +59,7 @@ private:
|
||||
/**
|
||||
* @brief true = calibration et false = erreur
|
||||
*/
|
||||
boolean initialized;
|
||||
bool initialized;
|
||||
|
||||
/**
|
||||
* @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