- 37
I'm thinking of making a robot for my 3rd year project, it would be a small cpu with various sensors mounted on an electric rc car. The idea is that it would (via measuring distances) figure out the perfect race line, eg after a few runs of the track, *learn* the turns and figure out the best line. It would also do a few pre race tests with the car, eg find out how many Gs the tyres can handle and what braking distances are etc, so it will get the (theoretically) best time possible for a track.
Maybe in the future it could figure the race line *before* going round the turn, ie in real time!
I am now trying to figure out just HOW the hell do you work out the race line? Taking the simplest turn, a 90 degree box turn:
I know that the best line is a circle where the center point is when the radius is equal to the distance from the apex is equal to the distance to the outside lane (point of turning).
I've got a few ideas how to work out when the car is at the point where the turn should take place, I'm asking if anyone has done this sort of calculation before?
Maybe in the future it could figure the race line *before* going round the turn, ie in real time!
I am now trying to figure out just HOW the hell do you work out the race line? Taking the simplest turn, a 90 degree box turn:
Code:
_______________
|
| _____
| |
| |
I know that the best line is a circle where the center point is when the radius is equal to the distance from the apex is equal to the distance to the outside lane (point of turning).
I've got a few ideas how to work out when the car is at the point where the turn should take place, I'm asking if anyone has done this sort of calculation before?