public static final double OUTPUT_SPEED = -0.5;
public final static double FULL_RANGE = 270.0; // in degrees
public final static double OFFSET = -135.0; // in degrees
+ 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
- }
+ 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;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class Robot extends IterativeRobot {
- public static OI oi;
- public static DriveTrain driveTrain;
- public static Shooter shooter;
- public static Scaler scaler;
- public static IntakeArm intakeArm;
- public static DefenseArm defenseArm;
+ public static OI oi;
+ public static DriveTrain driveTrain;
+ public static Shooter shooter;
+ public static Scaler scaler;
+ public static IntakeArm intakeArm;
+ public static DefenseArm defenseArm;
// Sendable Choosers send a drop down menu to the Smart Dashboard.
SendableChooser positionChooser;
SmartDashboard.putData("Position Two Defense Chooser", positionTwoDefense);
SmartDashboard.putData("Position Three Defense Chooser",
positionThreeDefense);
- SmartDashboard.putData("Position Four Defense Chooser",
- positionFourDefense);
- SmartDashboard.putData("Position Five Defense Chooser",
- positionFiveDefense);
+ SmartDashboard
+ .putData("Position Four Defense Chooser", positionFourDefense);
+ SmartDashboard
+ .putData("Position Five Defense Chooser", positionFiveDefense);
}
@Override