From: EvanYap Date: Fri, 3 Feb 2017 03:00:25 +0000 (-0800) Subject: init the branch for eric to find this branch X-Git-Url: http://challenge-bot.com/repos/?a=commitdiff_plain;h=231edc94da37a37fbacddbf2a4fd9d21cf046aba;p=3501%2F2017steamworks init the branch for eric to find this branch --- diff --git a/src/org/usfirst/frc/team3501/robot/RobotMap.java b/src/org/usfirst/frc/team3501/robot/RobotMap.java new file mode 100644 index 0000000..d62a2f7 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/RobotMap.java @@ -0,0 +1,19 @@ +package org.usfirst.frc.team3501.robot; + +/** + * The RobotMap is a mapping from the ports sensors and actuators are wired into + * to a variable name. This provides flexibility changing wiring, makes checking + * the wiring easier and significantly reduces the number of magic numbers + * floating around. + */ +public class RobotMap { + // For example to map the left and right motors, you could define the + // following variables to use with your drivetrain subsystem. + // public static int leftMotor = 1; + // public static int rightMotor = 2; + + // If you are using multiple modules, make sure to define both the port + // number and the module. For example you with a rangefinder: + // public static int rangefinderPort = 1; + // public static int rangefinderModule = 1; +} diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/ExampleSubsystem.java b/src/org/usfirst/frc/team3501/robot/subsystems/ExampleSubsystem.java new file mode 100644 index 0000000..80516bb --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/subsystems/ExampleSubsystem.java @@ -0,0 +1,16 @@ +package org.usfirst.frc.team3501.robot.subsystems; + +import edu.wpi.first.wpilibj.command.Subsystem; + +/** + * + */ +public class ExampleSubsystem extends Subsystem { + // Put methods for controlling this subsystem + // here. Call these from Commands. + + public void initDefaultCommand() { + // Set the default command for a subsystem here. + // setDefaultCommand(new MySpecialCommand()); + } +}