I have a Pololu 3Pi 32U4. I am using the magnetometer for accurate 90 degree turns. This method works well given that the magnetic field is consistent, has low variability, and no obstructions. It is critical to sample the magnetic field of the local area properly for accurate turns. I have a track enclosed in a box that looks like this:
What is the best way to sample this magnetic field? I want to sample it so that my robot can learn enough of the magnetic field to turn accurately at any point of this track. One idea I had was having the robot sample each of the four corners of the magnetic field. This can be implemented in code.
What are some other more efficient and less work strategies to get a good sample of the magnetic field in the area of this track?
1 post - 1 participant