-
Notifications
You must be signed in to change notification settings - Fork 0
Rejection fix #28
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
base: master
Are you sure you want to change the base?
Rejection fix #28
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,6 +91,7 @@ public void periodic() { | |
| Logger.getInstance().recordOutput("Indexer/InstantShooterBall", ballCurrentlyAtShooter); | ||
| getAllianceColorFMS(); | ||
| Logger.getInstance().recordOutput("Indexer/AllianceColor", allianceColor.toString()); | ||
| Logger.getInstance().recordOutput("Indexer/RejectiomTimerState", rejectionTimerStarted); | ||
| switch (state) { | ||
| case FIELD2: | ||
| stomachMotorOff(); | ||
|
|
@@ -336,12 +337,13 @@ else if (rejectionTimerStarted && rejectionTimer.hasElapsed(Constants.INDEXER_SH | |
| shootBall(); | ||
| intakeBall(); | ||
| rejectionTimerStarted = false; | ||
| state = State.INTAKE1; | ||
| state = State.FIELD2; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this, a ball can be intaked while a ball is rejected.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good point doing some testing now |
||
| } | ||
| /* This shouldn't happen, it would be at a state with 2 balls not 1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can happen, 1 ball tower, 1 ball intake
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. True |
||
| else if (ballCurrentlyAtIntake) { | ||
| intakeBall(); | ||
| state = State.REJECT1INTAKE1; | ||
| } | ||
| } */ | ||
| else if (rejectionTimerStarted && rejectionTimer.hasElapsed(Constants.INDEXER_SHOOTER_REJECTION_TIME)) { | ||
| shootBall(); | ||
| rejectionTimerStarted = false; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this a thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because the battery was not full
"don't commit temporary changes" blah blah blah i don't care
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The battery voltage will vary in a match, maybe some sort of system to calculate based on voltage of battery? Another probably better method would be to analyze current of shooter to determine when there is a ball there, as there will an increased amount of current when there is a ball touching it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that's helpful information, I wasn't aware of that
I'll work on that next time we meet