From e63d886baf5bc14895b4fefefa6527bb8af5dc25 Mon Sep 17 00:00:00 2001 From: Rayan Hirech Date: Thu, 19 Jan 2017 21:14:28 -0800 Subject: [PATCH] Tried to code USB camera. --- .../usfirst/frc/team3501/robot/RobotMap.java | 19 +++++++++++++++++++ .../robot/subsystems/ExampleSubsystem.java | 16 ++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 src/org/usfirst/frc/team3501/robot/RobotMap.java create mode 100644 src/org/usfirst/frc/team3501/robot/subsystems/ExampleSubsystem.java 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()); + } +} -- 2.30.2