-
Notifications
You must be signed in to change notification settings - Fork 0
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
Full functional #138
Merged
Merged
Full functional #138
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
de1116c
fixed switch ports
Alenguye582 1526243
Update entrance wheel to be CANSparkMax
ACat701 960f5ff
Fix turret unit conversion and update soft limits
ACat701 676fe49
Fix hood units
ACat701 4466191
Merge branch 'fixing-things' of https://github.com/FRCTeam3255/2022_O…
ACat701 20369f8
Transfer switches use constants for determining inversion
ACat701 f8fa614
The rotation was inverted but instead of solving the problem i just p…
ACat701 569c683
Discard functionality w/o Pneumatics (Rollers spin backwards)
ACat701 a207ac0
Debugging hood (it no work :( )
ACat701 9887999
got rid of setGoalSpeed and just made a setSpeed function
Alenguye582 5e83b22
the manual hood works :D
Alenguye582 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,19 +73,10 @@ public static final class prefDrivetrain { | |
} | ||
|
||
public static final class prefHood { | ||
|
||
public static final SN_DoublePreference hoodArbitraryFeedForward = new SN_DoublePreference( | ||
"hoodArbitraryFeedForward", 0.040078); | ||
|
||
public static final SN_DoublePreference hoodP = new SN_DoublePreference("hoodP", 0.09); | ||
public static final SN_DoublePreference hoodP = new SN_DoublePreference("hoodP", 0.05); | ||
public static final SN_DoublePreference hoodI = new SN_DoublePreference("hoodI", 0); | ||
public static final SN_DoublePreference hoodD = new SN_DoublePreference("hoodD", 0); | ||
|
||
public static final SN_DoublePreference hoodAllowableClosedLoopErrorDegrees = new SN_DoublePreference( | ||
"hoodAllowableClosedLoopErrorDegrees", 0.0001); | ||
public static final SN_DoublePreference hoodClosedLoopPeakOutput = new SN_DoublePreference( | ||
"hoodClosedLoopPeakOutput", .25); | ||
|
||
public static final SN_DoublePreference hoodMinDegrees = new SN_DoublePreference("hoodMinDegrees", 4.89); | ||
public static final SN_DoublePreference hoodMaxDegrees = new SN_DoublePreference("hoodMaxDegrees", 37); | ||
|
||
|
@@ -94,9 +85,8 @@ public static final class prefHood { | |
} | ||
|
||
public static final class prefIntake { | ||
|
||
public static final SN_DoublePreference intakeRollerSpeed = new SN_DoublePreference("intakeRollerSpeed", 0.8); | ||
|
||
public static final SN_DoublePreference intakeSpitSpeed = new SN_DoublePreference("intakeSpitSpeed", -0.8); | ||
} | ||
|
||
public static final class prefPreset { | ||
|
@@ -119,17 +109,10 @@ public static final class prefPreset { | |
} | ||
|
||
public static final class prefShooter { | ||
|
||
public static final SN_DoublePreference shooterF = new SN_DoublePreference("shooterF", 0.04609); | ||
public static final SN_DoublePreference shooterP = new SN_DoublePreference("shooterP", 0.21); | ||
public static final SN_DoublePreference shooterI = new SN_DoublePreference("shooterI", 0.006); | ||
public static final SN_DoublePreference shooterD = new SN_DoublePreference("shooterD", 10); | ||
|
||
public static final SN_DoublePreference shooterIZone = new SN_DoublePreference("shooterIZone", 200); | ||
|
||
public static final SN_DoublePreference shooterClosedLoopRamp = new SN_DoublePreference( | ||
"shooterClosedLoopRamp", 0.2); | ||
|
||
public static final SN_DoublePreference shooterF = new SN_DoublePreference("shooterF", 0); | ||
public static final SN_DoublePreference shooterP = new SN_DoublePreference("shooterP", 1); | ||
public static final SN_DoublePreference shooterI = new SN_DoublePreference("shooterI", 0); | ||
public static final SN_DoublePreference shooterD = new SN_DoublePreference("shooterD", 0); | ||
Comment on lines
+112
to
+115
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. Are these being used anywhere? |
||
} | ||
|
||
public static final class prefTransfer { | ||
|
@@ -142,17 +125,16 @@ public static final class prefTransfer { | |
"transferBeltSpeed", 0.5); | ||
public static final SN_DoublePreference transferBeltReverseSpeed = new SN_DoublePreference( | ||
"transferBeltReverseSpeed", -0.5); | ||
|
||
} | ||
|
||
public static final class prefTurret { | ||
|
||
public static final SN_DoublePreference turretArbitraryFeedForward = new SN_DoublePreference( | ||
"turretArbitraryFeedForward", 0.01); | ||
|
||
public static final SN_DoublePreference turretP = new SN_DoublePreference("turretP", 0.2); | ||
public static final SN_DoublePreference turretP = new SN_DoublePreference("turretP", 1); | ||
public static final SN_DoublePreference turretI = new SN_DoublePreference("turretI", 0); | ||
public static final SN_DoublePreference turretD = new SN_DoublePreference("turretD", 3.4); | ||
public static final SN_DoublePreference turretD = new SN_DoublePreference("turretD", 0); | ||
|
||
public static final SN_DoublePreference turretAllowableClosedloopErrorDegrees = new SN_DoublePreference( | ||
"turretAllowableClosedloopErrorDegrees", 0.5); | ||
|
@@ -161,15 +143,16 @@ public static final class prefTurret { | |
|
||
public static final SN_DoublePreference turretOpenLoopSpeed = new SN_DoublePreference("turretOpenLoopSpeed", | ||
0.3); | ||
public static final SN_DoublePreference turretMinDegrees = new SN_DoublePreference("turretMinDegrees", -270); | ||
public static final SN_DoublePreference turretMaxDegrees = new SN_DoublePreference("turretMaxDegrees", 110); | ||
public static final SN_DoublePreference turretMinDegrees = new SN_DoublePreference("turretMinDegrees", 0); | ||
public static final SN_DoublePreference turretMaxDegrees = new SN_DoublePreference("turretMaxDegrees", 360); | ||
public static final SN_DoublePreference turretFacingTowardsIntakeDegrees = new SN_DoublePreference( | ||
"turretFacingTowardsIntakeDegrees", -90); | ||
"turretFacingTowardsIntakeDegrees", 270); | ||
public static final SN_DoublePreference turretFacingAwayFromIntakeDegrees = new SN_DoublePreference( | ||
"turretFacingAwayFromIntakeDegrees", 90); | ||
|
||
public static final SN_DoublePreference turretClimberThreshold = new SN_DoublePreference( | ||
"turretClimberThreshold", -269); | ||
// TODO: Update if we want climber functionality | ||
|
||
public static final SN_DoublePreference turretDeadzoneSmall = new SN_DoublePreference("turretDeadzoneMin", -205); | ||
public static final SN_DoublePreference turretDeadzoneLarge = new SN_DoublePreference("turretDeadzoneMax", 25); | ||
|
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
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
Oops, something went wrong.
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.
Remove hood presets in another PR