41 static constexpr uint16_t max_current = 16384;
42 static constexpr uint16_t encoder_resolution = 8192;
43 static constexpr bool gearbox =
true;
44 static constexpr uint8_t reduction_ratio = 19;
45 static constexpr uint8_t max_id = 8;
47 template <u
int8_t motor_
id>
48 static consteval uint16_t cal_control_id()
50 if constexpr (motor_id <= 4)
60 template <u
int8_t motor_
id>
61 static consteval uint16_t cal_control_offset()
63 if constexpr (motor_id <= 4)
65 return (motor_id - 1) * 2;
69 return (motor_id - 4 - 1) * 2;
73 template <u
int8_t motor_
id>
74 static consteval uint16_t cal_feedback_id()
76 return motor_id + 0x200;
82 static constexpr uint16_t max_current = 16384;
83 static constexpr uint16_t encoder_resolution = 8192;
84 static constexpr bool gearbox =
true;
85 static constexpr uint8_t reduction_ratio = 36;
86 static constexpr uint8_t max_id = 8;
88 template <u
int8_t motor_
id>
89 static consteval uint16_t cal_control_id()
91 if constexpr (motor_id <= 4)
101 template <u
int8_t motor_
id>
102 static consteval uint16_t cal_control_offset()
104 if constexpr (motor_id <= 4)
106 return (motor_id - 1) * 2;
110 return (motor_id - 4 - 1) * 2;
114 template <u
int8_t motor_
id>
115 static consteval uint16_t cal_feedback_id()
117 return motor_id + 0x200;
123 static constexpr uint16_t max_current = 16384;
124 static constexpr uint16_t encoder_resolution = 8192;
125 static constexpr bool gearbox =
false;
126 static constexpr uint8_t max_id = 7;
128 template <u
int8_t motor_
id>
129 static consteval uint16_t cal_control_id()
131 if constexpr (motor_id <= 4)
141 template <u
int8_t motor_
id>
142 static consteval uint16_t cal_control_offset()
144 if constexpr (motor_id <= 4)
146 return (motor_id - 1) * 2;
150 return (motor_id - 4 - 1) * 2;
154 template <u
int8_t motor_
id>
155 static consteval uint16_t cal_feedback_id()
157 return motor_id + 0x204;
163 static constexpr uint16_t max_output = 25000;
164 static constexpr uint16_t encoder_resolution = 8192;
165 static constexpr bool gearbox =
false;
166 static constexpr uint8_t max_id = 7;
168 template <u
int8_t motor_
id>
169 static consteval uint16_t cal_control_id()
171 if constexpr (motor_id <= 4)
181 template <u
int8_t motor_
id>
182 static consteval uint16_t cal_control_offset()
184 if constexpr (motor_id <= 4)
186 return (motor_id - 1) * 2;
190 return (motor_id - 4 - 1) * 2;
194 template <u
int8_t motor_
id>
195 static consteval uint16_t cal_feedback_id()
197 return motor_id + 0x204;