FRC robot code for the 2024 robot using robotpy-commands-v2. Note, there are a lot of breaking changes from last year.
- Note code will be updated often during Jan-April 2024 build season
- robot - 2024 robot code - TBD
- gui - 2024 version of the python dashboard
- sim - utilities for the simulation (field images, etc)
- tests - simple one-file robots for testing a system using wpilib.TimedRobot
- distance sensors, drivetrain, elevator/turret/wrist/arm, pneumatics
- other_robots - code for practie bots, characterization, etc
- swerve_base - stripped-down swerve base
- wcd_bot - stripped-down WCD base
- training notebooks are here: https://github.com/aesatchien/FRC_training
- vision system (image processing on the pi) is here: https://github.com/aesatchien/FRC2429_vision
Clone the git and install on your own machine: Use "git clone https://github.com/aesatchien/FRC2429_2024.git" from the git bash (or any git aware) shell to download. If you don't have git and you just want to look at the code, you can download the repository from the links on the right.
Notes on how to install python and the necessary accessories (particularly the robotpy libraries) that will get all of this running:
2024 Python Installation but may be a bit cryptic. I'll help if you need it.
basically, in your python environment you'll need a pip install robotpy
and if you are working on anything else several more packages.
Once everything is installed, you need to go to the folder with robot.py. From there, commands like (new for 2024)
python -m robotpy sim
should bring up the simulator and allow you to check to see if your gamepad is recognized (you can also use the keyboard) and should be able to let you drive a virtual robot around the field if you have a gamepad.
python -m robotpy deploy
and python -m robotpy sync
will send your code to the robot and sync your packages, respectively.
Read more about it here.