Skip to content
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

started state machine #15

Merged
merged 23 commits into from
Aug 31, 2024
Merged

started state machine #15

merged 23 commits into from
Aug 31, 2024

Conversation

Alenguye582
Copy link
Contributor

@Alenguye582 Alenguye582 commented Aug 9, 2024

8/9 Status

  • Add Intake Floor Implementation
  • Add Baseline State Machine logic (RobotContainer)
  • Add Baseline Eject Implementation (May need to change based on how the amp/elevator/drainpipe works)
  • Updated Drive command to match how we tested it on 8/9
    • Includes full (?!) implementation for DT snapping based on state

TODOS: (Should probably be seperate issues)

  • Finish logic to automatically prep shuffle
  • Add logic to automatically prep amp

BrodyKarr and others added 3 commits July 27, 2024 17:03
also created methods for changing/getting the robot state
@Alenguye582 Alenguye582 requested a review from a team as a code owner August 9, 2024 18:57
@Alenguye582 Alenguye582 linked an issue Aug 9, 2024 that may be closed by this pull request
ACat701
ACat701 previously requested changes Aug 9, 2024
src/main/java/frc/robot/subsystems/Intake.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/RobotMap.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/subsystems/Transfer.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/subsystems/Transfer.java Outdated Show resolved Hide resolved
@ACat701
Copy link
Collaborator

ACat701 commented Aug 9, 2024

Closes #7
Closes #12

@ACat701 ACat701 enabled auto-merge (squash) August 9, 2024 23:59
@ACat701
Copy link
Collaborator

ACat701 commented Aug 10, 2024

Drivetrain implementation with states was tested in sim and it was good stuff 😋
As for the rest- I honestly just went "get as much of the state machine as you can get done today" and Alena just ran with it (shes the 🐐). I'm not sure how we should separate the rest of the parts issue-wise/pr-wise but I think the start is to get this in main

@TaylerUva TaylerUva marked this pull request as draft August 10, 2024 20:01
auto-merge was automatically disabled August 10, 2024 20:01

Pull request was converted to draft

@TaylerUva
Copy link
Member

Code looks great so far! Keep up the great work!

@Alenguye582
Copy link
Contributor Author

Code looks great so far! Keep up the great work!

Yay! And also question: how much do we want to get done in this PR before merging because it's getting pretty chonky 🐹 at the moment

@TaylerUva
Copy link
Member

Code looks great so far! Keep up the great work!

Yay! And also question: how much do we want to get done in this PR before merging because it's getting pretty chonky 🐹 at the moment

Good question. Lets address the requested changes and then we can merge this in and finish adding the remaining states in another PR.

Copy link
Member

@TaylerUva TaylerUva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks really good and most of my suggestions are just nitpicking. We can write the remaining states in another PR. Can we create a new issues for each of the states that remain?

src/main/java/frc/robot/commands/States/Eject.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/commands/States/Eject.java Outdated Show resolved Hide resolved
- moved enum states to subsystem
- renamed commands to match states
- made things more organized✨
- also deleted sensor in transfer cuz alice already coded one in main :3
@TaylerUva
Copy link
Member

We can also test the state transitions in sim using our print outs

@Alenguye582 Alenguye582 changed the title started state machine and created intake command started state machine Aug 18, 2024
- added lambda and deferredProxy when calling tryState()
- added some more valid states to PREP states (to switch between prep states)
@Alenguye582 Alenguye582 marked this pull request as ready for review August 31, 2024 19:06
@Alenguye582 Alenguye582 enabled auto-merge (squash) August 31, 2024 19:06
@Alenguye582 Alenguye582 merged commit 8ae6ed7 into main Aug 31, 2024
1 check passed
@Alenguye582 Alenguye582 deleted the State-machine branch August 31, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Intake Command
4 participants