Log in

View Full Version : Photosensor During TeleOp


cilginbilgin
15-02-2011, 05:36
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://imageshack.us)





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

Uploaded with ImageShack.us (http://imageshack.us)

Ian McShane
15-02-2011, 19:06
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?

cilginbilgin
16-02-2011, 02:13
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!