Squashed 'third_party/Phoenix-frc-lib/' content from commit 666d176
Change-Id: Ibaca2fc8ffb1177e786576cc1e4cc9f7a8c98f13
git-subtree-dir: third_party/Phoenix-frc-lib
git-subtree-split: 666d176a08151793044ab74e0005f13d3732ed96
diff --git a/java/src/com/ctre/phoenix/ParamEnum.java b/java/src/com/ctre/phoenix/ParamEnum.java
new file mode 100644
index 0000000..f6b3706
--- /dev/null
+++ b/java/src/com/ctre/phoenix/ParamEnum.java
@@ -0,0 +1,109 @@
+package com.ctre.phoenix;
+
+public enum ParamEnum
+ {
+ eOnBoot_BrakeMode ( 31),
+ eQuadFilterEn ( 91),
+ eQuadIdxPolarity(108),
+ eClearPositionOnIdx (100),
+ eMotionProfileHasUnderrunErr (119),
+ eClearPosOnLimitF (144),
+ eClearPosOnLimitR (145),
+
+ eStatusFramePeriod(300),
+ eOpenloopRamp(301),
+ eClosedloopRamp(302),
+ eNeutralDeadband(303),
+
+ ePeakPosOutput(305),
+ eNominalPosOutput(306),
+ ePeakNegOutput(307),
+ eNominalNegOutput(308),
+
+ eProfileParamSlot_P(310),
+ eProfileParamSlot_I(311),
+ eProfileParamSlot_D(312),
+ eProfileParamSlot_F(313),
+ eProfileParamSlot_IZone(314),
+ eProfileParamSlot_AllowableErr(315),
+ eProfileParamSlot_MaxIAccum(316),
+ eProfileParamSlot_PeakOutput(317),
+
+ eClearPositionOnLimitF(320),
+ eClearPositionOnLimitR(321),
+ eClearPositionOnQuadIdx(322),
+
+ eSampleVelocityPeriod(325),
+ eSampleVelocityWindow(326),
+
+ eFeedbackSensorType(330),
+ eSelectedSensorPosition(331),
+ eFeedbackNotContinuous (332),
+ eRemoteSensorSource (333), // RemoteSensorSource_t
+ eRemoteSensorDeviceID (334), // [0,62] DeviceID
+ eSensorTerm (335), // feedbackDevice_t (ordinal is the register)
+ eRemoteSensorClosedLoopDisableNeutralOnLOS (336),
+ ePIDLoopPolarity(337),
+ ePIDLoopPeriod(338),
+ eSelectedSensorCoefficient(339),
+
+ eForwardSoftLimitThreshold(340),
+ eReverseSoftLimitThreshold(341),
+ eForwardSoftLimitEnable(342),
+ eReverseSoftLimitEnable(343),
+
+ eNominalBatteryVoltage(350),
+ eBatteryVoltageFilterSize(351),
+
+ eContinuousCurrentLimitAmps(360),
+ ePeakCurrentLimitMs(361),
+ ePeakCurrentLimitAmps(362),
+
+ eClosedLoopIAccum(370),
+
+ eCustomParam(380),
+
+ eStickyFaults(390),
+
+ eAnalogPosition(400),
+ eQuadraturePosition(401),
+ ePulseWidthPosition(402),
+
+ eMotMag_Accel(410),
+ eMotMag_VelCruise(411),
+
+ eLimitSwitchSource (421), // ordinal (fwd=0,reverse=1), @see LimitSwitchSource_t
+ eLimitSwitchNormClosedAndDis ( 422), // ordinal (fwd=0,reverse=1). @see LimitSwitchNormClosedAndDis_t
+ eLimitSwitchDisableNeutralOnLOS ( 423),
+ eLimitSwitchRemoteDevID ( 424),
+ eSoftLimitDisableNeutralOnLOS(425),
+
+ ePulseWidthPeriod_EdgesPerRot(430),
+ ePulseWidthPeriod_FilterWindowSz(431),
+
+ eYawOffset(160),
+ eCompassOffset(161),
+ eBetaGain(162),
+ eEnableCompassFusion(163),
+ eGyroNoMotionCal ( 164),
+ eEnterCalibration ( 165),
+ eFusedHeadingOffset ( 166),
+ eStatusFrameRate ( 169),
+ eAccumZ ( 170),
+ eTempCompDisable ( 171),
+ eMotionMeas_tap_threshX ( 172),
+ eMotionMeas_tap_threshY ( 173),
+ eMotionMeas_tap_threshZ ( 174),
+ eMotionMeas_tap_count ( 175),
+ eMotionMeas_tap_time ( 176),
+ eMotionMeas_tap_time_multi ( 177),
+ eMotionMeas_shake_reject_thresh ( 178),
+ eMotionMeas_shake_reject_time ( 179),
+ eMotionMeas_shake_reject_timeout ( 180);
+
+ public final int value;
+ ParamEnum(int initValue)
+ {
+ this.value = initValue;
+ }
+};