Avoid obstacles detected in movement

When an obstacle is detected on edge (only by one IR sensor):

  • turn away to try to avoid it
  • if is too close (<5cm:question:) stop, back up, and turn