diff --git a/README.md b/README.md index 4ad0a99..4e61521 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This code was built using the 2023 beta version of WPILib TODO: 1. Compile-time ID -2. Find substitute for env.h +2. ~~Find substitute for env.h~~ (Use `Constants` in `frc.robot.Constants`) 4. Read/Write to shuffleboard using network tables 5. Dead-zone on input axes 6. Relay example w/ green light diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java new file mode 100644 index 0000000..f442856 --- /dev/null +++ b/src/main/java/frc/robot/Constants.java @@ -0,0 +1,7 @@ +package frc.robot; + +//Here is your substitution to env.h! ( I'm tempted to apply to join the team ) + +public class Constants { + public static final String sampleValue = "This is a sample ENV value!"; +} diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index cd17049..02dcf20 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -14,6 +14,9 @@ import com.revrobotics.CANSparkMaxLowLevel; import edu.wpi.first.wpilibj.Relay; +//Constants +import frc.robot.Constants; + /** * This is a demo program showing the use of the DifferentialDrive class. Runs the motors with * arcade steering.