blob: 473f6a7a5da6f229d7316afe76c33ec8bb577333 [file] [log] [blame]
Brian Silverman890a32a2018-03-11 15:41:56 -07001#pragma once
2#include <stdint.h>
3
4namespace ctre {
5namespace phoenix {
6
7/**
8 * Signal enumeration for generic signal access.
9 */
10enum ParamEnum
11 : uint32_t
12 {
13 eOnBoot_BrakeMode = 31,
14 eQuadFilterEn = 91,
15 eQuadIdxPolarity=108,
16 eClearPositionOnIdx = 100,
17 eMotionProfileHasUnderrunErr = 119,
18 eMotionProfileTrajectoryPointDurationMs = 120,
19 eClearPosOnLimitF = 144,
20 eClearPosOnLimitR = 145,
21
22 eStatusFramePeriod = 300,
23 eOpenloopRamp = 301,
24 eClosedloopRamp = 302,
25 eNeutralDeadband = 303,
26
27 ePeakPosOutput = 305,
28 eNominalPosOutput = 306,
29 ePeakNegOutput = 307,
30 eNominalNegOutput = 308,
31
32 eProfileParamSlot_P = 310,
33 eProfileParamSlot_I = 311,
34 eProfileParamSlot_D = 312,
35 eProfileParamSlot_F = 313,
36 eProfileParamSlot_IZone = 314,
37 eProfileParamSlot_AllowableErr = 315,
38 eProfileParamSlot_MaxIAccum = 316,
39 eProfileParamSlot_PeakOutput = 317,
40
41 eClearPositionOnLimitF = 320,
42 eClearPositionOnLimitR = 321,
43 eClearPositionOnQuadIdx = 322,
44
45 eSampleVelocityPeriod = 325,
46 eSampleVelocityWindow = 326,
47
48 eFeedbackSensorType = 330, // feedbackDevice_t
49 eSelectedSensorPosition = 331,
50 eFeedbackNotContinuous = 332,
51 eRemoteSensorSource = 333, // RemoteSensorSource_t
52 eRemoteSensorDeviceID = 334, // [0,62] DeviceID
53 eSensorTerm = 335, // feedbackDevice_t (ordinal is the register)
54 eRemoteSensorClosedLoopDisableNeutralOnLOS = 336,
55 ePIDLoopPolarity = 337,
56 ePIDLoopPeriod = 338,
57 eSelectedSensorCoefficient = 339,
58
59 eForwardSoftLimitThreshold = 340,
60 eReverseSoftLimitThreshold = 341,
61 eForwardSoftLimitEnable = 342,
62 eReverseSoftLimitEnable = 343,
63
64 eNominalBatteryVoltage = 350,
65 eBatteryVoltageFilterSize = 351,
66
67 eContinuousCurrentLimitAmps = 360,
68 ePeakCurrentLimitMs = 361,
69 ePeakCurrentLimitAmps = 362,
70
71 eClosedLoopIAccum = 370,
72
73 eCustomParam = 380,
74
75 eStickyFaults = 390,
76
77 eAnalogPosition = 400,
78 eQuadraturePosition = 401,
79 ePulseWidthPosition = 402,
80
81 eMotMag_Accel = 410,
82 eMotMag_VelCruise = 411,
83
84 eLimitSwitchSource = 421, // ordinal (fwd=0,reverse=1), @see LimitSwitchSource_t
85 eLimitSwitchNormClosedAndDis = 422, // ordinal (fwd=0,reverse=1). @see LimitSwitchNormClosedAndDis_t
86 eLimitSwitchDisableNeutralOnLOS = 423,
87 eLimitSwitchRemoteDevID = 424,
88 eSoftLimitDisableNeutralOnLOS = 425,
89
90 ePulseWidthPeriod_EdgesPerRot = 430,
91 ePulseWidthPeriod_FilterWindowSz = 431,
92
93 eYawOffset =160,
94 eCompassOffset = 161,
95 eBetaGain = 162,
96 eEnableCompassFusion = 163,
97 eGyroNoMotionCal = 164,
98 eEnterCalibration = 165,
99 eFusedHeadingOffset = 166,
100 eStatusFrameRate = 169,
101 eAccumZ = 170,
102 eTempCompDisable = 171,
103 eMotionMeas_tap_threshX = 172,
104 eMotionMeas_tap_threshY = 173,
105 eMotionMeas_tap_threshZ = 174,
106 eMotionMeas_tap_count = 175,
107 eMotionMeas_tap_time = 176,
108 eMotionMeas_tap_time_multi = 177,
109 eMotionMeas_shake_reject_thresh = 178,
110 eMotionMeas_shake_reject_time = 179,
111 eMotionMeas_shake_reject_timeout = 180,
112};
113
114}
115}