Skip to content

started state machine #15

Merged
AlenaNguyen merged 23 commits intomainfrom
State-machine
Aug 31, 2024
Merged

started state machine #15
AlenaNguyen merged 23 commits intomainfrom
State-machine

Conversation

@AlenaNguyen
Copy link
Contributor

@AlenaNguyen AlenaNguyen 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
@AlenaNguyen AlenaNguyen requested a review from a team as a code owner August 9, 2024 18:57
@AlenaNguyen AlenaNguyen linked an issue Aug 9, 2024 that may be closed by this pull request
@alicekuznetsov
Copy link
Collaborator

Closes #7
Closes #12

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

alicekuznetsov 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!

@AlenaNguyen
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?

- 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

@AlenaNguyen AlenaNguyen 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)
@AlenaNguyen AlenaNguyen marked this pull request as ready for review August 31, 2024 19:06
@AlenaNguyen AlenaNguyen enabled auto-merge (squash) August 31, 2024 19:06
@AlenaNguyen AlenaNguyen merged commit 8ae6ed7 into main Aug 31, 2024
@AlenaNguyen AlenaNguyen 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