-
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
Compensations for hardware testing #13
Merged
Merged
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ab3e47c
Engage arm brake when we're not twisting
c-x-berger 2702ead
Fix arm not braking/stopping
c-x-berger 9d7b107
Use double solenoid for disk brake
c-x-berger 46698fb
Revert "Use double solenoid for disk brake"
c-x-berger 1c5e6ab
Add extender piston to hatch manipulator
c-x-berger 3027595
Lower power on arm going down
c-x-berger 446c48c
Merge branch 'develop' into feature/hard-test-from-me-dog
c-x-berger a92bf4b
Add IDs for multiple PCMs, refactor
c-x-berger d3e6004
Update pressure function to fit new sensor
c-x-berger 91565a2
Left master Spark cannot be 0 after 1.1.31
c-x-berger 2e7ef7a
Scramble solenoid channels to match reality
c-x-berger 11ecf77
Merge branch 'feature/multi-pcm' into feature/hard-test-from-me-dog
c-x-berger 6bed59e
Fix location of PRESSURE_SENSOR_PORT in PressureSensor
c-x-berger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/frc/robot/commands/hatch/SetHatchExtender.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package frc.robot.commands.hatch; | ||
|
||
import edu.wpi.first.wpilibj.command.Command; | ||
import frc.robot.subsystems.HatchManipulator; | ||
|
||
public class SetHatchExtender extends Command { | ||
|
||
private boolean extended; | ||
|
||
public SetHatchExtender(boolean e) { | ||
requires(HatchManipulator.getInstance()); | ||
this.extended = e; | ||
} | ||
|
||
@Override | ||
protected void execute() { | ||
HatchManipulator.getInstance().setExtended(extended); | ||
} | ||
|
||
@Override | ||
protected boolean isFinished() { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Blame REV.
💢