Changes: Inference engine works fine with the JavaNator benchmark. Found some problem...
[IRC.git] / Robust / src / Benchmarks / SSJava / JavaNatorInfer / MotorControl.java
index ea7f2f060e0b61da743e9177671c0d314e890d86..0ced28877c9a7924605d1e1852697cc444eeb297 100644 (file)
@@ -150,8 +150,7 @@ public class MotorControl {
       System.out.println("setSpeedTurnLeft: input-> " + Integer.toString(timePosition));\r
     }\r
      int timePosLocal = normalizeTime(timePosition);\r
-     int motorUpTime =\r
-        (timePosLocal * 100 + ((100 - timePosLocal) * (100 - agilityFactor))) * speedFactor;\r
+     int motorUpTime = (timePosLocal * 100 + ((100 - timePosLocal) * (100 - agilityFactor))) * speedFactor;\r
     if (motorUpTime == 0) {\r
       motorUpTime = 1;\r
       // System.out.println("returning....");\r
@@ -185,8 +184,7 @@ public class MotorControl {
       System.out.println("setSpeedTurnRight: input-> " + Integer.toString(timePosition));\r
     }\r
      int timePos = normalizeTime(timePosition);\r
-     int motorUpTime =\r
-        ((timePos * 100) + ((100 - timePos) * (100 - agilityFactor))) * speedFactor;\r
+     int motorUpTime = ((timePos * 100) + ((100 - timePos) * (100 - agilityFactor))) * speedFactor;\r
     if (motorUpTime == 0) {\r
       motorUpTime = 1;\r
       // System.out.println("returning....");\r