Skip to content

Commit

Permalink
deleted constants.java! for real this timegit add .
Browse files Browse the repository at this point in the history
  • Loading branch information
sigalrmp committed Aug 22, 2023
1 parent 599e5f4 commit c5d10df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 33 deletions.
30 changes: 0 additions & 30 deletions src/main/java/org/sciborgs1155/robot/Constants.java

This file was deleted.

8 changes: 8 additions & 0 deletions src/main/java/org/sciborgs1155/robot/Ports.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.sciborgs1155.robot;

public final class Ports {
public static class OI {
public static final int DRIVER = 1;
public static final int OPERATOR = 0;
}
}
6 changes: 3 additions & 3 deletions src/main/java/org/sciborgs1155/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import io.github.oblarg.oblog.annotations.Log;
import org.sciborgs1155.lib.CommandRobot;
import org.sciborgs1155.lib.DeferredCommand;
import org.sciborgs1155.robot.Constants.OI;
import org.sciborgs1155.robot.Ports.OI;
import org.sciborgs1155.robot.commands.Autos;

/**
Expand All @@ -31,7 +31,7 @@ public class Robot extends CommandRobot implements Loggable {

/** The robot contains subsystems, OI devices, and commands. */
public Robot() {
super(Constants.PERIOD);
super(0.02);

configureGameBehavior();
configureBindings();
Expand All @@ -48,7 +48,7 @@ private void configureGameBehavior() {

DataLogManager.start();

addPeriodic(Logger::updateEntries, Constants.PERIOD);
addPeriodic(Logger::updateEntries, 0.02);

autonomous().onTrue(getAutonomousCommand());
}
Expand Down

0 comments on commit c5d10df

Please sign in to comment.