diff --git a/src/programme/cinematique.h b/src/programme/cinematique.h index 5d33771..bd7d04c 100644 --- a/src/programme/cinematique.h +++ b/src/programme/cinematique.h @@ -1,61 +1,44 @@ bool isInside(float x, float y){ - if( xMAX_X+COR_X ){ - Serial.print("OUT X"); - Serial.print(x); - Serial.print(">"); - Serial.print(MAX_X+COR_X); - Serial.println(); + if( x > MAX_X+COR_X ){ + LOG("OUT X", x, ">", MAX_X + COR_X); return false; } - if( yMAX_Y + COR_Y){ - Serial.print("OUT Y"); - Serial.print(y); - Serial.print(">"); - Serial.print(MAX_Y+ COR_Y); - Serial.println(); + if( y > MAX_Y + COR_Y){ + LOG("OUT Y", y, ">", MAX_Y + COR_Y); return false; } return true; - - if ( (x>MIN_X)&&(xMIN_Y)&&(y