9.24.2010

Day 6: I'M SORRY DAVE, I'M AFRAID I CAN'T DO THAT.

port swapped 
and suddenly every thing was peachy!
look how much nicer that is
IF either sensor is over the black, THEN the code corrects for this and navigates any turns.
ELSE the robot proceeds straight.
(swapping sensor and motors around leads to massive freakouts and general robotic sadness)

perfectly straight.
that little chunk with the R and L ensures that.
using the counters in either motor we can make sure that neither motor gets ahead on rotations, regardless of friction or anything at all really.
a really helpful feedback loop!


and so, at 80 percent power so it doesn't shoot right off the line-

(music is from Also sprach Zarathustra by Richard Strauss)
(ps, that's me!)

No comments:

Post a Comment