From 2549f15f43179be47c0ea4d694c67e31961dfdd5 Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Thu, 11 Feb 2016 18:31:57 -0800 Subject: [PATCH] add methods that return how far arm is sticking out and how high arm is at, and constants that need filling in --- .../usfirst/frc/team3501/robot/Constants.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/Constants.java b/src/org/usfirst/frc/team3501/robot/Constants.java index a2cc4580..c141ba25 100644 --- a/src/org/usfirst/frc/team3501/robot/Constants.java +++ b/src/org/usfirst/frc/team3501/robot/Constants.java @@ -50,6 +50,7 @@ public class Constants { // Winch port public final static int WINCH_MOTOR = 0; + } public static class Shooter { @@ -81,21 +82,20 @@ public class Constants { public static final double ZERO_ANGLE = 0; } - public static class DefenseArm { - // Potentiometer related ports - public static final int ARM_CHANNEL = 0; - public static final int ARM_PORT = 0; - public static final int HAND_PORT = 1; - public static final int HAND_CHANNEL = 1; - public final static double FULL_RANGE = 270.0; // in degrees - public final static double OFFSET = -135.0; // in degrees - public final static double[] armPotValue = { 0.0, 45.0, 90.0 }; // 3 - // level - public final static double ARM_LENGTH = 0; // TODO: find actual length - public final static double HAND_LENGTH = 0; // TODO: find actual length - public final static double ARM_MOUNTED_HEIGHT = 0; // TODO: find actual - // height - } + public static class DefenseArm { + // Potentiometer related ports + public static final int ARM_CHANNEL = 0; + public static final int ARM_PORT = 0; + public static final int HAND_PORT = 1; + public static final int HAND_CHANNEL = 1; + public final static double FULL_RANGE = 270.0; // in degrees + public final static double OFFSET = -135.0; // in degrees + public final static double[] armPotValue = { 0.0, 45.0, 90.0 }; // 3 level + public final static double ARM_LENGTH = 0; // TODO: find actual length + public final static double HAND_LENGTH = 0; // TODO: find actual length + public final static double ARM_MOUNTED_HEIGHT = 0; // TODO: find actual + // height + } public enum Defense { PORTCULLIS, SALLY_PORT, ROUGH_TERRAIN, LOW_BAR, CHEVAL_DE_FRISE, DRAWBRIDGE, MOAT, ROCK_WALL, RAMPART; -- 2.30.2