Implement new RobotContainer.java and Constants.java Classes

- OI.java has been deprecated and replaced with RobotContainer.java
- RobotMap.java has been deprecated and replaced with Constants.java
- Changes have been made to use the new classes without errors; some of these changes will be changed in the future
This commit is contained in:
Keenan D. Buckley
2020-01-05 17:35:52 -07:00
parent ec2412a31e
commit 6fb373969d
13 changed files with 134 additions and 112 deletions
@@ -7,13 +7,14 @@
package frc4388.robot.subsystems;
import frc4388.robot.RobotMap;
import frc4388.robot.commands.LED.UpdateLED;
import frc4388.robot.constants.LEDPatterns;
import edu.wpi.first.wpilibj.Spark;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import frc4388.robot.Constants.LEDConstants;
import frc4388.robot.commands.LED.UpdateLED;
import frc4388.robot.constants.LEDPatterns;
/**
* Allows for the control of a 5v LED Strip using a Rev Robotics Blinkin LED Driver
*/
@@ -23,7 +24,7 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public static Spark LEDController;
public LED(){
LEDController = new Spark(RobotMap.LED_SPARK_ID);
LEDController = new Spark(LEDConstants.LED_SPARK_ID);
setPattern(LEDPatterns.FOREST_WAVES);
LEDController.set(currentLED);
}