Photosensor During TeleOp

Here is the given Autonomous Code to track lines.

What I want is to run photo sensors when I push the trigger in TeleOp period.

But I am not really sure what to change in this code.

Any suggestions would be highly appreciated.

http://img213.imageshack.us/img213/8965/irteleop.png](http://img213.imageshack.us/i/irteleop.png/)

Uploaded with ImageShack.us

http://img213.imageshack.us/img213/8965/irteleop.th.png](http://img213.imageshack.us/i/irteleop.png/)

Uploaded with ImageShack.us

I am not sure what you would gain out of that, do you want to make an if statement in teleop. in other words do you want to hit a button and then have it follow a line or do something else when it senses the line?

I want to push a button make it follow the line!