Programming Tips

Programming Tips

Tips...

.

  • Use functions! Create your custom functions (like going straight with all of the motors) to make your code more efficient and more readable.
  • Write descriptive comments to make your code easily understandable.
  • Always plan your autonomous code before writing. Try to use the visuals of the field and take notes about your strategies. Don’t directly start coding.
  • Try to go step by step while writing your autonomous, instead of writing the whole code from top to bottom. 
  • Do not forget to save your code regularly, in case something happens to the program. 
  • Remember to transfer your code to the Competition Template, if you haven’t already started to write on there in the first place. 
  • Use online resources especially VEX Forum for advancements and problems in your code.
  • Try new things. Don’t be afraid to be creative and test out new techniques.
  • Grasp the fundamentals of coding rather than just VexCode for long-term benefits.
  • Learn by trial-and-error. Always play around with the code while learning. 
  • Try to explore new things via VexCode, check out the example codes, different templates, usage of different sensors, etc.
  • The programmer(s) should also be actively involved in the building process and/or grasp every detail of the robot in order to know how the robot works and moves.

Example Autonomous Strategy Sketches

.

Learn More About the Resources We Have Prepared

An engineering society

CONTACT