Skip to content

Commit

Permalink
FIX ANGLE SNAP AND
Browse files Browse the repository at this point in the history
  • Loading branch information
audreypj committed Nov 11, 2023
1 parent 704a744 commit 50fa951
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ public static final class OuttakeModes {

public static final class NetworkWatchdog {
/** The IP addresses to ping for testing bridging, on the second vlan. */
public static final List<IPv4> TEST_IP_ADDRESSES = List.of(IPv4.internal(1), IPv4.internal(21));
public static final List<IPv4> TEST_IP_ADDRESSES =
List.of(IPv4.internal(17), IPv4.internal(18), IPv4.internal(19), IPv4.internal(21));

/**
* The number of ms (sleep delta using oshi system uptime) to wait before beginning to ping the
Expand Down
39 changes: 19 additions & 20 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import frc.robot.commands.DefaultDriveCommand;
import frc.robot.commands.DefenseModeCommand;
import frc.robot.commands.DriveToPlaceCommand;
import frc.robot.commands.EngageCommand;
import frc.robot.commands.ForceOuttakeSubsystemModeCommand;
import frc.robot.commands.GroundPickupCommand;
import frc.robot.commands.HaltDriveCommandsCommand;
Expand Down Expand Up @@ -255,30 +254,30 @@ private void configureButtonBindings() {
.onTrue(
new RotateAngleDriveCommand(
drivebaseSubsystem, translationXSupplier, translationYSupplier, 0));
will.povUpRight()
.onTrue(
new RotateAngleDriveCommand(
drivebaseSubsystem, translationXSupplier, translationYSupplier, -45));
// will.povUpRight()
// .onTrue(
// new RotateAngleDriveCommand(
// drivebaseSubsystem, translationXSupplier, translationYSupplier, -45));
will.povRight()
.onTrue(
new RotateAngleDriveCommand(
drivebaseSubsystem, translationXSupplier, translationYSupplier, -90));
will.povDownRight()
.onTrue(
new RotateAngleDriveCommand(
drivebaseSubsystem, translationXSupplier, translationYSupplier, -135));
will.povDownLeft()
// will.povDownRight()
// .onTrue(
// new RotateAngleDriveCommand(
// drivebaseSubsystem, translationXSupplier, translationYSupplier, -135));
will.povDown()
.onTrue(
new RotateAngleDriveCommand(
drivebaseSubsystem, translationXSupplier, translationYSupplier, -180));
will.povLeft()
.onTrue(
new RotateAngleDriveCommand(
drivebaseSubsystem, translationXSupplier, translationYSupplier, -225));
will.povUpLeft()
.onTrue(
new RotateAngleDriveCommand(
drivebaseSubsystem, translationXSupplier, translationYSupplier, -270));
// will.povUpLeft()
// .onTrue(
// new RotateAngleDriveCommand(
// drivebaseSubsystem, translationXSupplier, translationYSupplier, -270));

// start driving to score
will.leftBumper()
Expand Down Expand Up @@ -416,15 +415,15 @@ private void configureButtonBindings() {
currentNodeSelection.apply(n -> n.withHeight(NodeSelectorUtility.Height.HIGH)),
armSubsystem));

jason.povRight()
jason
.povRight()
.onTrue(
new InstantCommand(() -> currentNodeSelection.apply(n -> n.shift(1)),
armSubsystem));
new InstantCommand(() -> currentNodeSelection.apply(n -> n.shift(1)), armSubsystem));

jason.povLeft()
jason
.povLeft()
.onTrue(
new InstantCommand(() -> currentNodeSelection.apply(n -> n.shift(-1)),
armSubsystem));
new InstantCommand(() -> currentNodeSelection.apply(n -> n.shift(-1)), armSubsystem));

var scoreCommandMap = new HashMap<NodeSelectorUtility.ScoreTypeIdentifier, Command>();

Expand Down

0 comments on commit 50fa951

Please sign in to comment.