X-Git-Url: https://git.llucax.com/z.facultad/75.68/celdas.git/blobdiff_plain/be06b7d24e8fb018ac06f36c907b46f642615624..4564a91af300e428600a997b3da82bf4abf50011:/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 e59f092..ee56a6e 100644 --- a/trunk/src/breve/robot/Celdas-2-5.tz +++ b/trunk/src/breve/robot/Celdas-2-5.tz @@ -391,13 +391,13 @@ Link : CeldasSensor (aka CeldasSensors) { posObstacle=i get-location. - + #! if(dot((i get-direction),direction)==0): des1=1. else des1=0. + !# - des1=1. des2=0. if(dot(direction,(1,1,1))<0): { @@ -450,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".