// Listing 10.6. Mechanizm tłumaczący PUMT — implementacja metody scanObject()

//ZADANIA: SEKCJA 3.
  455   public void scanObject()throws Exception
  456   {
  457                  
  458      float Distance = 0;
  459      resetArm();
  460      moveSensorArray(110);
  461      Thread.sleep(2000);
  462      Distance = readUltrasonicSensor();
  463      Thread.sleep(4000);
  464      if(Distance <= 10.0){
  465         getColor();
  466         Thread.sleep(3000);
  467      }
  468      moveSensorArray(50);
  469      Thread.sleep(2000);
  470            
  471   }
