This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
forked from MiamiBeachBots/base-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Switch to Spark Max + Encoders + Built in PID for auto #2
Merged
Merged
Changes from 24 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
70510b5
switch to spark max and switch encoders
jack60612 73b468e
Fully Finish Autonomous Code + Migrate PID
jack60612 5f3bbcd
cleanup drive code
jack60612 457a312
add encoder conversion factors for shooter and arm
jack60612 bc8811a
do last shooter initial changes
jack60612 07cbc5a
fix oversights, including radians not position
jack60612 a0b1bb8
Update PathplannerLib.json
jack60612 f997b02
fix their problem
jack60612 f6fe001
fix stuff
jack60612 bef2da4
sys id bs
jack60612 5b5562e
Update RobotContainer.java
jack60612 a2c0291
more profiling
jack60612 f5980ec
update constants
jack60612 b30af46
add sysid support to arm & shooter + feedforward
jack60612 f09f47d
add more deadzones
jack60612 ce62952
fix bad feedfoward implementation & add feedforward to shooter
jack60612 180e491
turn arm into stateful + add motion profile
jack60612 97cff90
remove 2nd arm motor
jack60612 f49d16e
Update build.gradle
jack60612 ded16d7
update
jack60612 ec2e80a
driveforward
jack60612 1681969
Update DriveSubsystem.java
jack60612 a8ee0cd
working auto
jack60612 02c41a7
spotless ....
jack60612 40aa157
Add controller deadzones to constants
jack60612 1f79f54
final
jack60612 51ba75e
add helperfunctions to utils folder
jack60612 1d3c77d
spotlessapply
jack60612 a6d634c
add LifterSubsystem
jack60612 24bf893
update vendor deps
jack60612 5a6ac87
added toggle bake mode
jack60612 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"download": { | ||
"localDir": "C:\\Users\\BeachBots\\Downloads", | ||
"serverTeam": "10.76.52.2" | ||
} | ||
} |
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 @@ | ||
{} |
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"version": 1.0, | ||
"startingPose": { | ||
"position": { | ||
"x": 2, | ||
"y": 7.0 | ||
}, | ||
"rotation": 0 | ||
}, | ||
"command": { | ||
"type": "sequential", | ||
"data": { | ||
"commands": [ | ||
{ | ||
"type": "path", | ||
"data": { | ||
"pathName": "DriveForward" | ||
} | ||
}, | ||
{ | ||
"type": "named", | ||
"data": { | ||
"name": "BrakeCommand" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"folder": null, | ||
"choreoAuto": false | ||
} |
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,49 @@ | ||
{ | ||
"version": 1.0, | ||
"waypoints": [ | ||
{ | ||
"anchor": { | ||
"x": 2.0, | ||
"y": 7.0 | ||
}, | ||
"prevControl": null, | ||
"nextControl": { | ||
"x": 3.0, | ||
"y": 7.0 | ||
}, | ||
"isLocked": false, | ||
"linkedName": null | ||
}, | ||
{ | ||
"anchor": { | ||
"x": 3.25, | ||
"y": 7.0 | ||
}, | ||
"prevControl": { | ||
"x": 2.25, | ||
"y": 7.0 | ||
}, | ||
"nextControl": null, | ||
"isLocked": false, | ||
"linkedName": null | ||
} | ||
], | ||
"rotationTargets": [], | ||
"constraintZones": [], | ||
"eventMarkers": [], | ||
"globalConstraints": { | ||
"maxVelocity": 1.0, | ||
"maxAcceleration": 0.5, | ||
"maxAngularVelocity": 540.0, | ||
"maxAngularAcceleration": 720.0 | ||
}, | ||
"goalEndState": { | ||
"velocity": 0.0, | ||
"rotation": 0, | ||
"rotateFast": false | ||
}, | ||
"reversed": false, | ||
"folder": null, | ||
"previewStartingState": null, | ||
"useDefaultConstraints": false | ||
} |
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
TimeToDie2 marked this conversation as resolved.
Show resolved
Hide resolved
|
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,8 @@ | ||
package frc.robot; | ||
|
||
public final class HelperFunctions { | ||
|
||
public static boolean inDeadzone(double value, double deadzone) { | ||
return Math.abs(value) < deadzone; | ||
} | ||
} |
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.
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.
What is this for? Can we avoid hard paths?
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.
this i can just git ignore, it was autogenerated.
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.
but its good to keap because team id so i think we could remove if needed