@Override public void run() { float _sideLength = sideLength; robot.getDifferentialPilot().travel(_sideLength); robot.getDifferentialPilot().rotate(120); robot.getDifferentialPilot().travel(_sideLength); robot.getDifferentialPilot().rotate(120); robot.getDifferentialPilot().travel(_sideLength); robot.getDifferentialPilot().rotate(120); }
@Override public void run() { // TODO Auto-generated method stub this.m_running = true; for (int i = 0; i <= noOfSides - 1; i++) { robot.getDifferentialPilot().travel(sideLength); robot.getDifferentialPilot().rotate((((noOfSides - 2) * 180) / noOfSides) + 0.75); } this.m_running = false; }