FRC Robot Code

Team 1257’s 2024 Robot Code.

Hi! I want to start of by thanking everyone who helped me with this project. This project was a lot of fun to work on and I learned a lot about programming and robotics. I hope you enjoy this project as much as I did! To start off, all the code was written in Java and the robot was programmed using the WPILib library. The robot was programmed to do a variety of tasks such as shooting balls, picking up balls, and climbing. The robot was also programmed to be able to drive around the field and avoid obstacles. Throughout my time as a programmer, I learned a lot about programming, robotics, quick thinking, and team skills. For all the future programers in 1257, here are some tips that I learned while working on this project.

Programming/Robot Tips:

  • Always make sure to test your code before you put it on the robot. This will help you catch any bugs or errors before they cause any problems.
  • Make sure to comment your code so that you and other programmers can understand what the code is doing.
  • Have backup parts and code in case something goes wrong. I learned this lesson when my team realized our robot was driving slowly; after further investigation, we found out that the wheel tread was burned off. Luckily, we had a spare wheel and were able to replace it quickly. Find Wheel IMage
  • Re use code from previous years. This will save you time and effort when you are working on new projects. Furthermore, don’t be afraid to use code from the internet! This will help you learn new things, and improve your programming skills.

Cool Features for Coding

Staring at a blank coding screen can be daunting, so here are some of the things we used in our code to help you get started.

Find more information here: https://github.com/frc1257/2024-robot/?tab=readme-ov-file

Advantage Kit:

This kit enhances readability, logging data, and simulation. (EXPAND ON EACH).

Drive

(Expand on the drive code)

Path Planner

(Expand on the path planner)

Vision

(Expand)


More Information

If you have any questions about the code or the robot, feel free to contact me on GitHub. I would be happy to help you with any questions you have!

Images:

  • https://frc1257.org/gallery

More Resources:

  • [GitHub Repository](
  • FRC 1257 Website
  • https://www.chiefdelphi.com/t/frc-1257-parallel-universe-2024-build-thread-open-alliance
  • https://www.youtube.com/channel/UCXWgXXNSbbENk5R95XOfyxg
  • https://www.youtube.com/@akashdubey443

** FRC PROGRAMING VIDEOS

  • https://youtu.be/piSAcMfTkuk?si=rsW5FKmpM5yneUof
  • https://youtu.be/gs5i50zLWnA?si=JQ5uAa-7R8uMc69K
  • https://youtu.be/WPwc2LVj2bk?si=gv3YDDnVQ_DJcBFK
  • https://youtu.be/fQBpHdJNHiM?si=FRXJMcS_kP0duRx6
  • https://youtu.be/fyr37y2wi5Q?si=8hwBWxiR4F2JWIit
  • https://youtu.be/btIoMemTeI0?si=mW91ljV-hxXeh3uL
  • https://youtu.be/_05BV_G8byY?si=CufsjDcOQBGk4HFS

Remember to have fun and enjoy the process of programming and robotics!

~ Akash Dubey