Odometry and where to start

My name is Brett from team 5155A and I’m the programmer for our team

Currently, I am using PID for accuracy in autons but I want more.

I have a pretty decent understanding of odometry and how it works, but I’m still running into a roadblock.

How do I learn how to ACTUALLY implement this into my autonomous code if there’s no place explaining how to do it? For instance, I know how to implement pid.-

  vex::task ffjfjfjfjf(LatPID);
  resetLatSensors = true;
  LatFinalValue = 1000;
  waitUntil(rot.position(degrees) >= LatFinalValue);
  vex::task ffjfjfjfjf(LatPID);

This is an example of what the actual code in my autonomous looks like.

My final question is this- How do I do this just with odometry? or any other method of programming for that matter? I only know how to do pid becuse of Connor’s example on youtube then I modified it slightly as I learned more.

All of these teams are so secretive about their code, yet I simply wonder how they got it in the first place!

Messed up my pid example, vex::task::stop(ffjfjfjfjf); is what the last line should be

http://thepilons.ca/wp-content/uploads/2018/10/Tracking.pdf

Should I start out by printing out values on the brain screen to make sure it can track correctly?

1 Like