Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private SwerveRequest GetSwerverCommand(SwerveRequest.FieldCentric drive) {
rot = rotLimiter.calculate(rot);

// 5. Multipliers to slow down movement based on driver preference. Slow mode and normal mode.
if (controller.leftTrigger().getAsBoolean()) {
if (controller.leftBumper().getAsBoolean()) {
x *= SLOW_MODE_TRANSLATIONAL_MULTIPLIER;
y *= SLOW_MODE_TRANSLATIONAL_MULTIPLIER;
rot *= SLOW_MODE_ROTATIONAL_MULTIPLIER;
Expand Down
14 changes: 11 additions & 3 deletions src/main/java/com/team1816/season/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void teleopInit() {
private void configureBindings() {
// DRIVER CONTROLLER
// Swerve
driverController.povDown().onTrue(Commands.runOnce(() ->
driverController.rightBumper().onTrue(Commands.runOnce(() ->
superstructure.setSuperstructureWantedSwerveState(Superstructure.WantedSwerveState.BRAKE)
))
.onFalse(Commands.runOnce(() ->
Expand Down Expand Up @@ -96,8 +96,16 @@ private void configureBindings() {
}));

// Intake
driverController.leftBumper().onTrue(Commands.runOnce(() -> superstructure.setSuperstructureWantedIntakeState(Superstructure.WantedIntakeState.INTAKE)));
driverController.rightBumper().onTrue(Commands.runOnce(() -> superstructure.setSuperstructureWantedIntakeState(Superstructure.WantedIntakeState.STOW)));
driverController.leftTrigger().onTrue(Commands.runOnce(() ->
superstructure.setSuperstructureWantedIntakeState(Superstructure.WantedIntakeState.INTAKE)
))
.onFalse(Commands.runOnce(() ->
superstructure.setSuperstructureWantedIntakeState(Superstructure.WantedIntakeState.STOW)
));


//driverController.leftBumper().onTrue(Commands.runOnce(() -> superstructure.setSuperstructureWantedIntakeState(Superstructure.WantedIntakeState.INTAKE)));
//driverController.rightBumper().onTrue(Commands.runOnce(() -> superstructure.setSuperstructureWantedIntakeState(Superstructure.WantedIntakeState.STOW)));


// OPERATOR CONTROLLER
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/yaml/ztldr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ subsystems:
magneticSensor:
sensorDirection: Clockwise_Positive
absoluteSensorDiscontinuityPoint: 0.625
magnetOffset: -0.35748674479
magnetOffset: 0.397483
candi:
id: 6
deviceType: CANdi
Expand Down
Loading