Tips for Coders

Real advice from two years of VEX competition, covering autonomous functions, burnout, templates, and team dynamics.

Over the course of my two-year journey in VEX, I dealt with many situations: a mentor who wasn't helpful, being blamed for hardware limitations, and burnout. These experiences weren't fun, and I want to share what I've learned with any coder who might be in a similar situation.

Writing Autonomous Functions

Writing the autonomous function is the most time-consuming part of being the coder. Autonomous code runs during the 15-second match autonomous period or skills autonomous, making the robot follow a set path you programmed.

It takes longer than you think

Writing autonomous functions is very tiring, very boring, and very time-intensive. You'll get about 90% of the way there in the first few hours, but increasing reliability and performance can take weeks more.

Properly tune your PID first

Make sure your PID movement functions are properly tuned. Ideally, the margin of error for 1 meter is <0.5 cm, and for 3 meters is <3 cm. You will not save time by having poorly tuned PID.

Keep the battery above 75%

If your robot's battery is below 75%, it will cause deviations in movement. Never tune autonomous functions on a low battery; you won't save time by skipping the battery change.

Refill piston gas tubes

If your robot uses pistons and gas tubes, refill them at least once every two runs. Your route won't matter if the pistons fail mid-run.

Never solo the autonomous writing process

If you're the only programmer, never solo it. Having a buddy reset the field, put the robot back in position, and record runs makes the process dramatically faster and prevents burnout. If you're in a larger group, designate someone for field cleanup.

Record your runs on video

If you've been stuck on a section, use your phone to record the run. You can replay it multiple times and diagnose the problem much faster than watching it once live. Use a stand if you don't have a buddy to film.

Give yourself at least a week, and follow this task order

Don't be discouraged by how long it takes, especially if you're doing it solo. Some programmers can write a great autonomous in an afternoon, others need two months. Follow this task order:

  1. Tune PID
  2. Design teamwork routes
  3. Write 15s autonomous
  4. Design skills routes
  5. Write skills autonomous

Leave the last two steps for when you have time. Focus on teamwork autonomous first.

Use a physical aligner

An aligner is a physical device that ensures your robot's starting position is nearly identical every run. Ask your builder to make one, or build one yourself. It is very important for consistent results.

If you're writing code skills (longer distances), consider switching to JAR Template or LemLib: they include odometry support which is essential for skills. VEXLearn is focused on teaching and simpler tasks.

Rely on a Template

If you don't have the time to write your own custom VEX software, don't be afraid to use an existing template for competition.

My mentor encouraged our three-person team to write our own software from scratch. Looking back, this was a mistake for a small team. Writing custom code requires extensive testing, debugging, and time, which is also time you need for autonomous tuning. I wasn't told about templates until very late in my second year.

These competition templates both support odometry.

Both templates only require you to set up your robot config and tune PID. They handle odometry and coordinate systems automatically, and are very reliable for competition use.

That said, a well-written custom software has a higher performance ceiling than any template.

Your Role Not Being Valued

I was part of a three-person team: one builder, one driver, and me as the sole coder. In our first year, poor coordination meant the builder often only finished the robot a week to just a few days before competition. With so little time to work on a completed robot, I often stayed up until 3 to 4 AM writing autonomous functions the night before events, alone.

When our team lost, I was blamed for weak or unreliable autonomous programs. The truth was that there simply wasn't enough time, support, or resources for the coder role to succeed in those conditions.

If you follow the tips in this guide, you should be able to avoid these problems. But if you can't, due to team size or lack of support, know that the time investment required to solo-code a competition robot just to win a few awards may not be worth it. Protect your wellbeing first.

Engineering Notebook & Interviews

If your role is limited to programming, here's how to approach the engineering notebook and judge interviews.

Engineering Notebook

Focus your notebook pages on:

In the Push Back season, this approach yielded about 150 pages of engineering notebook content for a solo programmer.

Interviews

This template alone will not help your interview. Judges have heard about PID control thousands of times. Simply describing PID movement won't impress them, and the display screen (while nice) isn't unique.

Judges want to hear something interesting and unique to you. Think about what problem you solved that nobody else did, what you learned the hard way, or what you built that surprised your teammates. That's what makes a memorable interview.

Practice: Plan a fair autonomous test

Worked example. To test a change to a starting position, run the same autonomous code from each marked position and record the final error over several trials.

Your turn. You want to compare two turn settings. What should stay fixed, and what should you record?

Reveal an example answer

Use the same start pose, target heading, and test surface. Change only the turn setting you are comparing. Record final heading error and battery level for each run so you can compare repeated trials.