BC Robotics (Team #4504) has designed their 2024 FIRST Robotics submission using Robotpy with the MagicBot Framework. To keep the relevant libraries current, the following code will need to be run regularly in a terminal interface:
Left Joystick (Lx, Ly): Controls the robot's movement in the field. The X-axis (Lx) translates to movement in the x-direction while the Y-axis translates to movement in the y-direction.
Right Joystick (Rx): Controls the robot's rotation on the field. The X-axis (Rx) influences the angular velocity of the robot.
Right Trigger (RT): Engages the launcher to shoot.
Left Trigger (LT): Engages auto-alignment with the AprilTag. When pressed beyond a certain threshold(.35), it activates the alignment process for precise targeting.
Y Button: Positions the intake to score in the amp.
B Button: Deactivates the front camera, raises the intake.
A Button: Activates the front camera and lowers the intake.