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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
@@ -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!";
}
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down