From: Marcelo Benitez Date: Sun, 17 Dec 2006 23:55:12 +0000 (+0000) Subject: (no commit message) X-Git-Tag: entrega-20061218~5 X-Git-Url: https://git.llucax.com/z.facultad/75.68/celdas.git/commitdiff_plain/6566954a731b998269a9f17108ece63b17ccbbbf?ds=inline --- diff --git a/trunk/src/breve/Celdas.tz b/trunk/src/breve/Celdas.tz index 6ed43f4..ed8532c 100644 --- a/trunk/src/breve/Celdas.tz +++ b/trunk/src/breve/Celdas.tz @@ -9,6 +9,7 @@ @define CELDAS_MAX_VELOCITY 30. @define CELDAS_TURNO 80. @define CELDAS_SENSOR_THRESHOLD 9. +@define CELDAS_VECTOR_ERROR 0.5. PhysicalControl : CeldasControl { % This class is used for building simple vehicle @@ -182,6 +183,15 @@ CeldasLightVehicle : CeldasVehicle (aka CeldasVehicles) { - to get-wheel-radius: return 0.8. + - to compare-vectors compare-vector vector1(vector) with-vector vector2(vector): + vectorAux(vector). + vectorAux=vector1-vector2. + + if ((|vectorAux::x|