Skip to content

Commit

Permalink
Auto coral scorer
Browse files Browse the repository at this point in the history
  • Loading branch information
AquaShock211 committed Feb 1, 2025
1 parent 332d1be commit 0ba075a
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/main/deploy/pathplanner/autos/System Test.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"version": "2025.0",
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Not Moving"
}
},
{
"type": "race",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Score"
}
},
{
"type": "wait",
"data": {
"waitTime": 2.0
}
}
]
}
}
]
}
}
]
}
},
"resetOdom": true,
"folder": null,
"choreoAuto": false
}
54 changes: 54 additions & 0 deletions src/main/deploy/pathplanner/paths/Not Moving.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version": "2025.0",
"waypoints": [
{
"anchor": {
"x": 4.0,
"y": 6.0
},
"prevControl": null,
"nextControl": {
"x": 4.2493016654053966,
"y": 6.018672965112581
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 4.0,
"y": 6.0
},
"prevControl": {
"x": 3.719372230184102,
"y": 5.978918867512457
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [],
"pointTowardsZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 0.1,
"maxAcceleration": 0.1,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 1200.0,
"nominalVoltage": 12.0,
"unlimited": false
},
"goalEndState": {
"velocity": 0,
"rotation": 0.0
},
"reversed": false,
"folder": null,
"idealStartingState": {
"velocity": 0,
"rotation": 0.0
},
"useDefaultConstraints": false
}
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ public RobotContainer() {
// ``m_drivebase``, as that is automatically monitored.
m_power = new PowerMonitoring(batteryCapacity, m_flywheel);

// Idk where this is suppose to go. but I think this works, just setting up auto commands
NamedCommands.registerCommand("Score", new CoralScorerCommand(m_CoralScorer, -0.75));

// Set up the SmartDashboard Auto Chooser based on auto type
switch (Constants.getAutoType()) {
case PATHPLANNER:
Expand Down

0 comments on commit 0ba075a

Please sign in to comment.