I am the programmer for 32789B (middle school) and I was wondering how I could get my Odometry code to track multiple points. I can already get it to do one. I am pretty new with Odometry so any help would be greatly appreciated.
I’m reformatting your code so it will be easier to read. In the future, you can put triple tick marks (```) on either side of the code to format it nicely.
I’m not exactly sure what you mean when you say you want the code to track multiple points. Do you mean you want the robot to drive to multiple different points during the autonomous run?
As a side note, I would recommend changing the wait time vex::task::sleep(100) to a lower value like 10 or 20 to increase the accuracy of your odometry by taking readings more frequently.
Assuming your code correctly tracks your tracking center, you could just measure the displacement of the second point from your tracking center, and you would always know its relative position.