-
Follow this guide to install the latest version of WPILib.
-
Make sure you have Git installed. If you're on Windows, you can install Git using this installer.
-
Clone this repository.
-
Open the
2024-testbot-new
folder in2024 WPILib VS Code
. -
Press
Ctrl + Shift + P
to open the command palette -
To run the simulation: search and select
WPILib: Simulate Robot Code
and wait for the process to complete. To deploy the code to the robot: connect to the robot, then search and selectWPILib: Deploy Robot Code
and wait for the process to complete.
- To edit the paths and autos, install FRC PathPlanner.
- To use the Driver Station and to image the roboRIO, install the FRC Game Tools using these instructions.
- Readings directly from the gyro sensor (e.g., using
m_gyro.getAngle()
orm_gyro.getRotation2d()
) are increasing going CW. Readings usinggetRobotHeadingDegrees
inDriveSubsystem
and values inPose2d
andRotation2d
are increasing going CCW. - For
Translation2d
andPose2d
values relative to the robot, positive x values represent moving toward the front of the robot whereas positive y values represent moving toward the left of the robot. - For
Pose2d
values on the field, the RED SOURCE is at the (0, 0) corner and the RED AMP is closest to the (16.54, 8.21) corner.