\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
* 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
// erase current settings\r
initialize();\r
}\r
- System.exit(0);\r
}\r
\r
public void initialize() {\r