X-Git-Url: https://git.llucax.com/z.facultad/75.68/celdas.git/blobdiff_plain/56921653d5a7913fac626727913465b64fd86097..d341574030ac5443b1aa739060e751826aea7016:/trunk/src/breve/robot/Celdas-2-5.tz diff --git a/trunk/src/breve/robot/Celdas-2-5.tz b/trunk/src/breve/robot/Celdas-2-5.tz index fb87985..ee56a6e 100644 --- a/trunk/src/breve/robot/Celdas-2-5.tz +++ b/trunk/src/breve/robot/Celdas-2-5.tz @@ -381,7 +381,6 @@ Link : CeldasSensor (aka CeldasSensors) { obsLoc (vector). location (vector). posObstacle,posSensor (vector). - angulo(double). draw clear. value = 0.0. @@ -392,12 +391,12 @@ Link : CeldasSensor (aka CeldasSensors) { posObstacle=i get-location. - + #! if(dot((i get-direction),direction)==0): des1=1. else des1=0. - + !# des2=0. if(dot(direction,(1,1,1))<0): @@ -451,7 +450,7 @@ Link : CeldasSensor (aka CeldasSensors) { print "sensor: $id , des1: $des1, des2: $des2, des3: $des3". - if ((des1) && (des2) && (des3)): + if ((des2) && (des3)): { draw clear. #print " posObstacle: $posObstacle".