Buy an Axon, Axon II, or Axon Mote and build a great robot, while helping to support SoR.
0 Members and 1 Guest are viewing this topic.
Yes, I've read about it, but I'm not on how to take 2 sensors into account, for both motors.
I don't see why you can't center you robot.I mean, you know the robot's width, and you have 2 IR sensors on both sides of the robot.Your aim is basically to reach a point where both IR read the same value...
So basically each motor should work on the corrosponding IR relatively to him? (Left works with Right motor, etc?).
QuoteSo basically each motor should work on the corrosponding IR relatively to him? (Left works with Right motor, etc?).Again, if you put one on each side of your robot, it wont work. Try if you dont believe me Even at 45 degrees, your robot wont know if its really close the the left wall, or if the robot is just pointing left.And you must compare values from both sensors, its not a 'split brain' system . . . ignore the photovore comment I made before, I wasnt thinking at the time
Is it like this:global variable -> unsigned int lastError = 0;...Motor <- LeftSens * KC + General_Speed - lastError * KC2lastError <- currentError (Current Distance - Wanted Distance)