Autonomous obstacle avoidance code zumo 32u

Professor Craven has an example:

additionally you can take a look at my code that i am currently working on. My IR avoidance is crude but my main IR code that detects an object seems to work pretty good. You can take a look at it here if you wish. I am currently having problems with the encoders.