How to get a vex robot to consistently turn 180/90 degrees.?
I've tried using the gyro, and lowering the turn speed, but it is always a degree or two off. For my purposes, it needs to be pretty much perfect
I've tried using the gyro, and lowering the turn speed, but it is always a degree or two off. For my purposes, it needs to be pretty much perfect
?
Count motor revolutions via an encoder with an interrupt routine. Calculate the number required for a turn. Slow down when getting near the required count. At the right moment, apply motor braking. Wheels are important, as you don't need slippage. Possibly use an optical mouse to determine direction, or a magnetic direction sensor to verify long term accuracy.
?
No chance to the nearest degree - slippage on ground, etc. You have to correct afterward with independent measurement.
Philomel
Mapping routine.
leticia
I was asking myself about this too
Anonymous
it depends...