Re: Using readed values from sensors
It looks like you have the right idea, it may be the ROBOTC syntax that is holding you up. No worries, though; we have a Video Curriculum Trainer
available for scenarios just like this one. I would suggest going through the videos, which will introduce you to ROBOTC, its syntax, controlling motors, and how to use sensors (among other things). There is even a segment dedicated to line tracking that you may want to look at (found in the Sensing -> Line Tracking segment).
I would work through the videos and modify your code as you go; if you still have questions afterwards, we are always happy to help out!
Check out our Blog
! And our Facebook page
Need help? Take a look at our Wiki
and our Forums.I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody