How to start code using JAR template

Hi, we are using the JAR template by 2775. We are wondering how do start the code with the competition template? We know that when there is no field controller detected it automatically goes to user control so would we just a controller callback?

JAR Template already includes the competition template.

Sorry must not have phrased it right I meant how do you start it with the competition template when you don’t have the field controller

If you want to run driver control, just start your program. If you want to run an autonomous, you can use the “timed run” option on the controller.

If you are on the V5 system, theres a way to run it as competition mode in the controller or Skills mode, its the three options when you click in the controller to run the program, first is just run for driving, 2nd is competiton mode (15 sec auton, 1:45 driver) and last is skills (1 min driving or 1 min Auton)

Thank you this solved our issue ( dumb on our part ). But do you know if in the jar template it contains motion profiling? And could you just slap the code for motion profiling in there or would the odometry be messed up?

JAR template does not contain motion profiling functions. I would put off “slapping” someone else’s code into JAR template until you understand the template layout, what odometry is, and what motion profiling is.

Yes I understand odometry and motion profiling and the sense of how it works and the math with it. It is just the code which is confusing me because we’re new to it but will eventually get it fully. I’m just wondering if implementing motion profiling will cause errors with the code or if it will implement rather simply. Thanks for your responses so far.