-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hanger Module Organization #35
Comments
Almost there @jforchheimer25. Some things that will cause issue with the command scheduler is with your debug controller bindings. 2024_Official/src/main/java/frc/robot/RobotContainer.java Lines 263 to 287 in e152885
Here, the Hanger submodule will cause a lock on the commands running and you won't be able to run each hanger arm at the same time. Thus, you would want to change it as an example: debugController
.leftBumper() // Left Hanger arm down
.whileTrue(
m_Hanger.leftHangerModule().runEnd(
m_Hanger.leftHangerModule()::MoveHangDown,
m_Hanger.leftHangerModule()::HangStop
)
); This way, this won't cause for issues with the bindings. |
Similarly, with the auto hang feature in the commands, it's missing the requirements needed to hold each of those hanger modules. 2024_Official/src/main/java/frc/robot/subsystems/Hanger.java Lines 77 to 93 in e152885
Here, we would need to change it so that we are running leftHangerModule().runEnd(leftHangerModule()::MoveHangDown, leftHangerModule()::HangStop) and similary with the Finally, you would need to require the hanger subsystem, so finally, you would take the Same with the |
Finally, I think this might be a better method for adding the data to SmartDashboard. 2024_Official/src/main/java/frc/robot/subsystems/Intake.java Lines 167 to 170 in e152885
This can be changed in This should be updated: 2024_Official/src/main/java/frc/robot/subsystems/Hanger.java Lines 96 to 100 in e152885
|
Jared: Since this command is requiring the same sub? But if thats the case, isnt using the two modules twice requiring the same sub? (If i create the object twice does that get around the scheduler?) |
That and you need to run it with the left/right hanger module subsystem, not the hanger subsystem. |
Im gonna commit in a sec, almost done with updates (probably at 11:45/12) |
The only req you need to add with the parallel is the Hanger req. The others should run directly from the left/right hanger modules individually |
2024_Official/src/main/java/frc/robot/subsystems/Hanger.java Lines 90 to 93 in e152885
|
That part, but the commands in parallel need to be updated. |
Should be fine. |
|
Create a pull request into Dev and I'll review there. |
|
@jforchheimer25 I reviewed. Comments need to be addressed. |
Please address the comments on the PR first. |
This is a good start! Here's some suggestions
For the HangerModule class, can you implement the following:
For the Hanger class, do the following
static final
The text was updated successfully, but these errors were encountered: