title: Lego NXT-RobotC ultrasonic sensor
body: <p>I am newbie in programming so I need help with my Ultrasonic sensor driven NXT robot.
  It is attached to motor(A) and I'd like it to scan the room from robot's centerline to 90° left and 90° right in 30° increments (seven measurements total), store the data to an array and based on largest distance point my robot in the direction that measurement was taken to avoid obsticles.
  Is this possible at all? Or is there some better solution?
  Any advice or suggestion is more than welcome.</p>