Skip to content

Commit

Permalink
productivity
Browse files Browse the repository at this point in the history
  • Loading branch information
sciborgsweb committed Jun 18, 2024
1 parent 568d3b6 commit 2878852
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/sciborgs1155/robot/Ports.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static final class Pivot {
public static final int SPARK_LEFT_TOP = 7;
public static final int SPARK_RIGHT_TOP = 39;
public static final int SPARK_LEFT_BOTTOM = 51;
public static final int SPARK_RIGHT_BOTTOM = 55;
public static final int SPARK_RIGHT_BOTTOM = 35;
}

public static final class Feeder {
Expand All @@ -41,6 +41,6 @@ public static final class Intake {
}

public static final class Led {
public static final int LED_PORT = 2; // led port
public static final int LED_PORT = 1; // led port
}
}
11 changes: 10 additions & 1 deletion src/main/java/org/sciborgs1155/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public class Robot extends CommandRobot implements Logged {
default -> Pivot.none();
};

private final PowerDistribution pdh = new PowerDistribution();
private final LedStrip led = new LedStrip();

private final Vision vision = Vision.create();
Expand Down Expand Up @@ -118,7 +119,7 @@ private void configureGameBehavior() {

SmartDashboard.putData(CommandScheduler.getInstance());
// Log PDH
SmartDashboard.putData("PDH", new PowerDistribution());
SmartDashboard.putData("PDH", pdh);
// addPeriodic(() -> log("current", FakePDH.update()), PERIOD.in(Seconds));

// Configure pose estimation updates every tick
Expand All @@ -137,6 +138,8 @@ private void configureGameBehavior() {

if (isReal()) {
URCL.start();
pdh.clearStickyFaults();
pdh.setSwitchableChannel(true);
} else {
DriverStation.silenceJoystickConnectionWarning(true);
addPeriodic(() -> vision.simulationPeriodic(drive.pose()), PERIOD.in(Seconds));
Expand Down Expand Up @@ -232,6 +235,12 @@ private void configureBindings() {
.whileTrue(
shooting.shootWithPivot(PivotConstants.FEED_ANGLE, ShooterConstants.DEFAULT_VELOCITY));

// shoot 45 deg FAST (far as possible)
// operator
// .povLeft()
// .whileTrue(
// shooting.shootWithPivot(Radians.of(0.619), ShooterConstants.MAX_VELOCITY));

// operator climb (b)
operator
.b()
Expand Down

0 comments on commit 2878852

Please sign in to comment.