kolban wrote:Another possibility might be to measure the rotation of the wheels. In an ideal situation, there would be no slippage between the wheels and the ground. That would then allow us to know how far the vehicle has traveled by determining how much each wheel has turned. Using some trigonometry and maybe some calculus, we could at least approximate a position. I suspect that the knowledge of the position will drift badly over time but it might give us a ball-park. If the motors driving the vehicle are stepper motors you might get more precision.
There is an issue with this strategy. Since the RC car will move randomly, the RC car may be commanded to drive in a loop, or u-turn. Thus the RC car may move 10 units away from the starting position, then turn left, move 2 units, then turn left again, move 8 units. Using the above idea, the RC car would have moved 20 units away from the starting position. Where in fact, the RC car is only 2^2 + 2^2 = C^2, C = 2.8 units from the starting position.