added values to robotmap

This commit is contained in:
Adam Long 2016-07-19 17:48:31 +00:00
parent e13943c378
commit 9f6eeacb8e
3 changed files with 35 additions and 15 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist/FRCUserProgram.jar

Binary file not shown.

View File

@ -1,18 +1,37 @@
package org.usfirst.frc.team2059.robot; package org.usfirst.frc.team2059.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 { public class RobotMap {
// For example to map the left and right motors, you could define the
// following variables to use with your drivetrain subsystem. //Drive
// public static int leftMotor = 1; public static int driveLeftMotorOne = 1;
// public static int rightMotor = 2; public static int driveLeftMotorTwo = 2;
public static int driveRightMotorOne = 1;
// If you are using multiple modules, make sure to define both the port public static int driveRightMotorTwo = 2;
// number and the module. For example you with a rangefinder: public static int driveRightEncoder = 0;
// public static int rangefinderPort = 1; public static int driveLeftEncoder = 1;
// public static int rangefinderModule = 1;
//Arm
public static double zeroDegrees = 0.1;
public static double ninetyDegrees = 0.7;
public static int armPot = 0;
public static int armLeftMotor = 5;
public static int armRightMotor = 6;
//Shooter
public static int shooterLeftMotor = 7;
public static int shooterRightMotor = 8;
//Pneumatics
public static int pcmID = 31;
public static int shooterSolenoidOne = 0;
public static int shooterSolenoidTwo = 1;
public static int portcullisSolenoidOne = 2;
public static int portcullisSolenoidTwo = 3;
public static int armStopSolenoidOne = 4;
public static int armStopSolenoidTwo = 5;
//Misc
public static int mainArmPresetCollect = 0;
public static int mainArmPresetTraverse = 5;
public static int mainArmPresetCloseShot = 95;
public static int mainArmPresetFarShot = 85;
} }