Official command-based code for the 9127-2024 Robot: CIM City!
This branch will contain the code that the team should use.
Using SmartDashboard or ShuffleBoard, the operator can access a sendable chooser, which will allow them to select which autonomous routine to play.
The Shuffleboard layout can be found in the file called "ShuffleBoardLayout.json"
(Any of the following is subject to change)
Tank drive: Left/Right Joysticks
Intake speed: Left/Right Triggers
Jump between positions using left/right bumpers (left makes it go towards intake, right makes it go towards shooting)
- Intaking position (around 0°)
- Inside perimeters of robot, close to intake (around 50°)
- Inside perimeters of robot, close to down-shooting into Amp (around 90°)
- Down-shooting into Amp (around 100°)
Emergency stop: X-button
Arm Manual Movement: Right Joystick (e-stop button on either controllers must be hit prior to using this or it won't work)
Arm Setpoint Offset: Left/Right Bumpers (offsets the arm's position by increments of 3°, will automatically be reset to 0 when each limit switches are hit)
Intake Speed: Left/Right Triggers
Manually Reset Chassis Sensors: A + B button (must be held at the same time)
TBD
Using Phoenix Tuner, the user can update the firmware of the connected devices (motor controllers and PDP). The firmware files are located in a folder called "ctr-device-firmware" in this project.
- TalonSRX (Arm): Version 22.1
- VictorSPX (Drivetrain): Version 22.1
- PDP: Version 1.40
If the installed version is outdated, the frame around the device in Phoenix Tuner will show up as yellow instead of green.
If the installed version is incorrect, the frame around the device in Phoenix Tuner will show up as purple instead of green.
- Q/A: Left Joystick
- E/D: Right Joystick
- Z/X/C/V: A/B/X/Y Buttons
- W/R: Left/Right Bumpers
- S/F: Left/Right Triggers
- Arrow Keys: POV Buttons
- Y/H: Left Joystick
- I/K: Right Joystick
- B/N/M/,: A/B/X/Y buttons
- U/O: Left/Right Bumpers
- J/L: Left/Right Triggers
- Number Pad Arrow Keys (8/6/2/4): POV Buttons