changes + bring up uncommited previous changes.
[IRC.git] / Robust / src / Benchmarks / SSJava / JavaNatorInfer / RobotMain.java
index f7e780ee349f272988df9cb1ee436969ceb770c9..6a9fb9d03e33421f9ba93938eb0c47e3dda97835 100644 (file)
@@ -252,7 +252,6 @@ public class RobotMain {
 \r
   \r
   public void doit() {\r
-     boolean active = true;\r
     /**\r
      * RealTime management of the robot behaviour based on sensors and commands input.\r
      */\r
@@ -279,13 +278,22 @@ public class RobotMain {
      * on the granularity of timing for the PWM pulse (quantization).\r
      */\r
     pwmm.setSpeedAgilityFactors(100, 100);\r
-\r
+  \r
+    start();\r
     /*\r
      * Robot's initial state is "ON" by default. Set this parameter to "OFF" if the robot is to be\r
      * started over the TCP/IP link.\r
      */\r
     // issueCommand("OFF");\r
 \r
\r
+    System.exit(0);\r
+  }\r
+  \r
+  public void start(){\r
+    \r
+    boolean active = true;\r
+\r
     SSJAVA: while (active) {\r
 \r
       Command com = HWSimulator.getCommand();\r
@@ -303,7 +311,6 @@ public class RobotMain {
       // erase current settings\r
       initialize();\r
     }\r
-    System.exit(0);\r
   }\r
 \r
   public void initialize() {\r