We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22f8a1d commit fabf63dCopy full SHA for fabf63d
src/ODriveEnums.h
@@ -143,9 +143,9 @@ enum ODriveEncoderId {
143
ENCODER_ID_SPI_ENCODER2 = 7,
144
ENCODER_ID_HALL_ENCODER0 = 8,
145
ENCODER_ID_HALL_ENCODER1 = 9,
146
- ENCODER_ID_AMT21_ENCODER0 = 10,
147
- ENCODER_ID_AMT21_ENCODER1 = 11,
148
- ENCODER_ID_AMT21_ENCODER2 = 12,
+ ENCODER_ID_RS485_ENCODER0 = 10,
+ ENCODER_ID_RS485_ENCODER1 = 11,
+ ENCODER_ID_RS485_ENCODER2 = 12,
149
ENCODER_ID_ONBOARD_ENCODER0 = 13,
150
ENCODER_ID_ONBOARD_ENCODER1 = 14,
151
};
@@ -162,6 +162,15 @@ enum ODriveSpiEncoderMode {
162
SPI_ENCODER_MODE_BISSC = 7,
163
164
165
+// ODrive.Rs485EncoderMode
166
+enum ODriveRs485EncoderMode {
167
+ RS485_ENCODER_MODE_DISABLED = 0,
168
+ RS485_ENCODER_MODE_AMT21_POLLING = 1,
169
+ RS485_ENCODER_MODE_AMT21_EVENT_DRIVEN = 2,
170
+ RS485_ENCODER_MODE_MBS = 3,
171
+ RS485_ENCODER_MODE_ODRIVE_OA1 = 4,
172
+};
173
+
174
// ODrive.Controller.InputMode
175
enum ODriveInputMode {
176
INPUT_MODE_INACTIVE = 0,
0 commit comments