All dependencies are managed via uv.
- Please follow the installation instructions
Once you have uv installed, you only need to run:
uv run frc sync
We use ruff for formatting code. This ensures consistency and minimizes white-space-related conflicts.
- VS Code should be set up to install the
charliemarsh.ruffextension and will format-on-save. - Before pushing code always format using ruff:
uv run ruff format uv run ruff check
uv run frc sim
uv run frc deploy
If you want to skip running the tests
uv run frc deploy --skip-tests
To run back a log file in replay mode, set the LOG_PATH environment variable and then run in simulation
An example is to run the following:
LOG_PATH=/path/to/log/file.wpilog uv run -- robotpy --main src simFor replay watch, do the following:
LOG_PATH=/path/to/log/file.wpilog uv run -- robotpy --main src watchNotes: We use L1 swerve. USB: 172.22.11.2 Radio: 10.45.72.1 RoboRIO: 10.45.72.2 Vision: 10.45.72.201 SSH into RoboRIO: admin@roboRIO-4572-frc.local AndyMark field at districts and regionals.
TODO at comp:
- Need to update deploy/pathplanner/settings.json should these be tuned? auto_translation_pid = PIDConstants(4, 0.0, 0) auto_rotation_pid = PIDConstants(5.0, 0.0, 0.0)
- I would recommend an actual PID to the stop point’s pose so you can be cleaning up any residual path error during the shooting pause
- Hood gittering at 0
- Add vision onto other orin nano.
- Figure out uv run frc debugpy/debug.
VISION
- Usew command to usb memlory buffer: sudo sh -c 'echo 256 > /sys/module/usbcore/parameters/usbfs_memory_mb'
- try 512 mb
- check active usb, performance
- attempt to put each camera into 1 usb port and see if that works
- set fps to 15fps