I am working on a reinforcement learning car. It would be preferred if I can track the coordinates of the car and also the direction where it's heading. Depending on its state, I'd like to have to move in a certain direction. "North, South, East, West, etc". I've been messing around with MPU9250 but can't figure out how to get it to read earth's magnetic field so I can do that.
- can this board read coordinates?
- can this board read direction?
(pretty sure it can but how do I enable it to work with the magnetic field of earth?)
Im looking for a library which may have compass and gps files in it.