feat: création classe abstraite capteur #44
@ -9,7 +9,7 @@ Ultrason::Ultrason(int trigeur, int echo, String fullVall):
|
|||||||
|
|
||||||
String Ultrason::read(){
|
String Ultrason::read(){
|
||||||
int sortie = this->capteur->read();
|
int sortie = this->capteur->read();
|
||||||
if (sortie > this->fullVall.toInt())
|
if (sortie < this->fullVall.toInt())
|
||||||
{
|
{
|
||||||
this->full = true;
|
this->full = true;
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user