Skip to content

Commit

Permalink
Merge pull request #77 from SciBorgs/dod
Browse files Browse the repository at this point in the history
Dod
  • Loading branch information
sigalrmp authored Jun 27, 2024
2 parents fce64f4 + a7dc7f3 commit 1ba87d8
Show file tree
Hide file tree
Showing 12 changed files with 12,637 additions and 9,890 deletions.
7,271 changes: 4,091 additions & 3,180 deletions choreo.chor

Large diffs are not rendered by default.

3,206 changes: 1,813 additions & 1,393 deletions src/main/deploy/choreo/Source 4 Note.1.traj

Large diffs are not rendered by default.

2,396 changes: 1,324 additions & 1,072 deletions src/main/deploy/choreo/Source 4 Note.2.traj

Large diffs are not rendered by default.

2,461 changes: 1,346 additions & 1,115 deletions src/main/deploy/choreo/Source 4 Note.3.traj

Large diffs are not rendered by default.

7,149 changes: 4,026 additions & 3,123 deletions src/main/deploy/choreo/Source 4 Note.traj

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/main/deploy/pathplanner/autos/Source 4 Note.auto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
"type": "named",
"data": {
"name": "shoot-pivot-only"
"name": "shoot-subwoofer"
}
},
{
Expand Down Expand Up @@ -46,7 +46,7 @@
{
"type": "wait",
"data": {
"waitTime": 0.5
"waitTime": 0.7
}
},
{
Expand Down Expand Up @@ -96,7 +96,7 @@
{
"type": "wait",
"data": {
"waitTime": 0.5
"waitTime": 0.7
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/Source 5 Note.auto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
"type": "named",
"data": {
"name": "shoot-pivot-only"
"name": "shoot-subwoofer"
}
},
{
Expand Down
25 changes: 25 additions & 0 deletions src/main/deploy/pathplanner/autos/amp 1 note.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.6769374112178659,
"y": 4.380056190402963
},
"rotation": -60.46121774044194
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "shoot-subwoofer"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
3 changes: 2 additions & 1 deletion src/main/java/org/sciborgs1155/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private void configureBindings() {
// intake (right trigger / top left bump)
operator
.leftBumper()
.whileTrue(intake.intake().deadlineWith(feeder.forward()))
.whileTrue(intake.intake().deadlineWith(feeder.slowForward()))
.whileTrue(led.rainbow());

// operator feed (left trigger)
Expand Down Expand Up @@ -290,6 +290,7 @@ public Command systemsCheck() {
Test.fromCommand(
intake
.intake()
.asProxy()
.deadlineWith(feeder.forward(), shooter.runShooter(100))
.withTimeout(1)),
pivot.goToTest(Radians.of(0)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class Shooting implements Logged {
* The conversion between shooter tangential velocity and note launch velocity. Perhaps. This may
* also account for other errors with our model.
*/
public static final DoubleEntry siggysConstant = Tuning.entry("/Robot/Siggy's Constant", 4.45);
public static final DoubleEntry siggysConstant = Tuning.entry("/Robot/Siggy's Constant", 4.42);

public static final Measure<Distance> MAX_DISTANCE = Meters.of(5.0);

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/sciborgs1155/robot/feeder/Feeder.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public Command forward() {
return runFeeder(POWER).withName("forward");
}

public Command slowForward() {
return runFeeder(POWER / 2).withName("slow forward");
}

public Command backward() {
return runFeeder(-POWER).withName("backward");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class PivotConstants {
public static final Measure<Angle> MAX_ANGLE = STARTING_ANGLE.minus(Degrees.of(1.2));

public static final Measure<Angle> PRESET_SUBWOOFER_ANGLE = STARTING_ANGLE;
public static final Measure<Angle> AMP_ANGLE = Radians.of(-0.579);
public static final Measure<Angle> AMP_ANGLE = Radians.of(-0.645);
public static final Measure<Angle> PRESET_PODIUM_ANGLE = Radians.of(0.5);

public static final Measure<Angle> PRESET_CLIMBING_ANGLE = Radians.of(-0.195);
Expand Down

0 comments on commit 1ba87d8

Please sign in to comment.