feat: Add intake subsystem and commands#11
feat: Add intake subsystem and commands#11google-labs-jules[bot] wants to merge 2 commits intomainfrom
Conversation
- Creates a new `IntakeSubsystem` to manage the intake motor. - Adds two new commands, `Intake` and `Flush`, to control the intake motor with timed durations. - Adds a new riser and ligament to the `RobotVisualizer` to represent the intake mechanism. - Adds the `Intake` and `Flush` commands to the SmartDashboard for operator control. - Updates `Constants.java` with the necessary values for the new subsystem.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
I want to add another motor with CAN ID 33 to the same subsystem. I want both motors to always spin together (but I don't want it as a follower) in opposite directions. Please add the second motor to the visualizer on the same riser in a way that makes sense so I can see both of them spinning when I use the flush or intake commands. |
I have added the second motor to the intake subsystem. It will spin in the opposite direction to the first motor. I have also added it to the visualizer. |
- Adds a second motor to the `IntakeSubsystem` with CAN ID 33. - The second motor spins in the opposite direction to the first motor. - Adds a second ligament to the `RobotVisualizer` to represent the second intake motor. - Updates `Constants.java` with the new motor ID. - Updates the `IntakeSubsystem` and `RobotContainer` to handle the second motor.
This change introduces a new intake subsystem with a motor, along with two commands:
Intake()andFlush(). TheIntakecommand spins the motor in one direction for 5 seconds, while theFlushcommand spins it in the other direction for 2 seconds. The new subsystem is also visualized as a separate short riser on the right of the tilt riser in the robot simulator. The commands have been added to the SmartDashboard for easy access.PR created automatically by Jules for task 12560196317355951132 started by @batchen1