Hmmm well I have the XBC manual, and I've read through the whole thing.
The thing is that I don't know if you're gonna understand me without ever having used an XBC robot. But basically I want to make it track a line.
OK, so I'm using a line sensor on analog port 2, and a touch sensor on digital port 12. Drive motors are on motor ports 2 and 3. I want it to track the line until it hits the box. do you think that something like this would work?
while (digital(12)==0)
{
if (analog(2)>=250)
{
mrp(2,1000);
}
else
{
mrp(3,1000);
}
}
so if I did that correctly, it should stay on the right side of a black line (electrical tape) and go forward until it hits the touch sensor, at which point, it will jump out of the while loop, onto the next thing. right?
Is there an easier way to make it track a line?
Normally I would just ask my robotics teacher about this, but I'm so far ahead of the other groups, and he is rather busy helping them, so I am trying to work this out on my own.
I was going to try this today, until i found out what had been plaguing my drivetrain for so long, and ended up spending the whole class fixing that.