Quote:
Originally Posted by tdbroun
Thank you for your replies. I didn't know that the gyro signal was not a directional heading. Without that, I don't see how what I proposed could be feasible. We'll continue with our tried and true code to drive straight for a specific distance...
|
If you're looking for an autonomous solution (that is, a few seconds worth), the SRX internals can be the solution, just not with a gyroscope. Put encoders on both gearboxes, and give them controls to drive at the same speed for the same duration, or to both drive to the same position (that is, the same number of encoder clicks). The first might result in you not pointing the correct direction at the end, and the second might result in a curvature that's corrected at the end. You could probably combine the two (start out with speed, and switch to position when you're about 3/4 of the way there) to get the best of both. If you calculate how many "excess clicks" correspond to a turn of a given angle, you can even use this to follow a more complex path.