Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,4 @@ compile_commands.json
.factorypath
.java-version
src/main/java/frc/robot/BuildConstants.java
networktables.json.bck
250 changes: 0 additions & 250 deletions networktables.json.bck

This file was deleted.

10 changes: 10 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import frc.robot.subsystems.intake.IntakeSubsystem;
import frc.robot.subsystems.shooter.LaunchRequest;
import frc.robot.subsystems.shooter.ShooterSubsystem;
import frc.robot.subsystems.ui.UISubsystem;
import frc.robot.subsystems.vision.VisionSubsystem;

@Logged
Expand All @@ -54,6 +55,10 @@ public class RobotContainer {
@Logged(name = "Vision")
public final VisionSubsystem vision = new VisionSubsystem();

@Logged(name = "UI Feedback")
public final UISubsystem uiFeedback =
new UISubsystem(driverJoystick.getHID(), operatorJoystick.getHID());

private final DriveState driveState = DriveState.getInstance();
private final LaunchState launchState = LaunchState.getInstance();

Expand Down Expand Up @@ -101,6 +106,9 @@ public RobotContainer() {
RobotModeTriggers.disabled()
.whileTrue(drivetrain.applyRequest(() -> new SwerveRequest.Idle()).ignoringDisable(true));

// Rumble driver controller when teleop starts
RobotModeTriggers.teleop().onTrue(uiFeedback.timedRumbleCommand(driverJoystick.getHID(), 5.0));

configureSubsystemDefaultCommands();
configureTeleopBindings();
}
Expand Down Expand Up @@ -227,6 +235,8 @@ public void configureTeleopBindings() {
LaunchState.getInstance()
.setTargetPose3d(Constants.FieldConstants.getRightPassTarget())));

operatorJoystick.y().whileTrue(uiFeedback.manualRumbleCommand(driverJoystick.getHID()));

drivetrain.registerTelemetry(logger::telemeterize);
}

Expand Down
Loading
Loading