Exemplo n.º 1
0
 /** @return The distance to the obstacle detected by the rangefinder. */
 public double getDistanceToObstacle() {
   // Really meters in simulation since it's a rangefinder...
   return rangefinder.getAverageVoltage();
 }