Line Tracking sensor v4 on v5 brain

I need to create a code that tracks black on a grey marble floor, im not sure how to start it so If anyone could help or point me in the right direction that would be great its for a sumo project for in class robotics.

Let us know if any of these are helpful for what you are doing:

http://cdn.robotc.net/pdfs/natural-language/hp_line_follower.pdf

2 Likes

This helps but I was looking for a program on Vexcode or vcs that implements the 3wire port to test if it works I know how to program it in Robotc but I know VexCode and vcs is different. is there anyway someone could make a sample file of the code using line tracker?

1 Like

Please, look at this example of how 3-wire ports can be programmed with V5:

After you configure the port, you can read line follower by calling value() function, see the API

https://api.vexcode.cloud/v5/html/classvex_1_1line.html

Then you treat it the same as in the older RobotC code examples.

More topics with examples: