RoboJDE PingSensor Following Hand
<p>Here is my code, I cannot get it to follow my hand for example.</p>

<pre><code>import com.ridgesoft.intellibrain.IntelliBrain;
import com.ridgesoft.io.Display;
import com.ridgesoft.intellibrain.IntelliBrainDigitalIO;

public class PingSensor {
 public static void main(String args[]) {
    try {
      Display display = IntelliBrain.getLcdDisplay();
      display.print(0, "Ping Test");
      IntelliBrainDigitalIO pingPort = IntelliBrain.getDigitalIO(3);
      pingPort.enablePulseMeasurement(true);
      while (true) 
      {
        pingPort.pulse(20);
        Thread.sleep(50);
        display.print(1, "Time: " + pingPort.readPulseDuration());
        Thread.sleep(450);
      }
    }
    catch(Throwable t) {
    t.printStackTrace(); }

    }
}
</code></pre>

<p>The code compiles, but when i try to run it, it does not move. I need to get some help to make the code do this.</p>

<p>i need 2 parameters, to measure max distance and min distance, if it is at max distance it should move forward, while at min distance, it should move backwards</p>
