Robot's source code

Dependencies:   mbed

Revision:
123:55e5e9acc541
Parent:
109:53918ba98306
--- a/Map/Obstacles/Obstacle.cpp	Thu May 07 14:18:07 2015 +0000
+++ b/Map/Obstacles/Obstacle.cpp	Mon May 11 20:32:11 2015 +0000
@@ -1,11 +1,12 @@
 #include "Obstacle.h"
 
-Obstacle::Obstacle(float robotRadius)
+Obstacle::Obstacle(float robotRadius, int id)
 {
     this->robotRadius = robotRadius;
+    this->id = id;
+    this->active = true;
     bigShape = true;
     smoothBigShape = false;
-    id = -1;
 }
 
 Obstacle::~Obstacle()