]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Robomon: deleted solved FIXMEs
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 2 May 2008 09:11:45 +0000 (11:11 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 2 May 2008 09:11:45 +0000 (11:11 +0200)
src/robomon/src2/RobomonExplorer.cpp
src/robomon/src2/RobomonExplorer.h

index 65a59f410f51288585153540f7e7cdfd327a8e63..d021e74c9979de885774d9a4544121ea0ca705f9 100644 (file)
@@ -839,28 +839,19 @@ void RobomonExplorer::simulateObstacles()
        
        for (i=0; i<4; i++) {
                wall_distance = distanceToWall(i);
-               distance = distanceToObstacle(i, simulatedObstacle, 0.5/*meters*/);
+               distance = distanceToObstacle(i, simulatedObstacle, SIM_OBST_SIZE_M/*meters*/);
                if (wall_distance < distance) 
                        distance = wall_distance;
                *sharp[i] = distance;
        }
        ORTEPublicationSend(orte_eb2008.publication_sharps);
        
-       // FIXME
-       /*
-       orteData.orteSharpOpponent.longSharpDist1 = distance;
-       orteData.orteSharpOpponent.longSharpDist2 = distance;
-       orteData.orteSharpOpponent.longSharpDist3 = distance;
-       ORTEPublicationSend(orteData.publisherSharpLong);*/
 }
 
 void RobomonExplorer::changeObstacle(QPointF position)
 {
        if (!simulationEnabled) {
                simulationEnabled = 1;
-               // FIXME
-//             createSharpLongsPublisher(this, &orteData);
-//             createSharpShortsPublisher(this, &orteData);
                obstacleSimulationCheckBox->setChecked(true);
        }
 
index 1d1844777f80b2a45cc6fb1fd57c0467274a5f54..2032fc8f59d2e7da6f967829c7206abfd018a6fa 100644 (file)
@@ -16,6 +16,8 @@
 #define SHARP_LONG_CNT 4
 #define SHARP_SHORT_CNT 2
 
+#define SIM_OBST_SIZE_M 0.5
+
 #include <QDialog>
 
 #include <sharp.h>