You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/interfaces/README.md
+28-30Lines changed: 28 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,15 +156,10 @@ VCF Outputs:
156
156
-__note__: the regen percentage that was present on MCU should instead be calculated by the controllers themselves instead of by the pedals system to centralize regen calculation at higher levels to allow for tuning / safe modification more easily
157
157
158
158
-__note__: the following data is all the raw, non-filtered data
159
-
- steering data CAN packet:
160
-
- `uint16_t analog_steering`
161
-
- `float digital_steering` (32 bit)
159
+
-`STEERING_DATA` (`0x41f`) steering data CAN packet:
160
+
- `uint16_t steering_analog_raw`
161
+
- `float steering_digital_raw` (32 bit)
162
162
163
-
- suspension data CAN packet:
164
-
-`uint16_t fl_load_cell`
165
-
-`uint16_t fr_load_cell`
166
-
-`uint16_t fl_shock_pot`
167
-
-`uint16_t fr_shock_pot`
168
163
169
164
### Ethernet Interface
170
165
@@ -184,9 +179,9 @@ VCF Outputs:
184
179
- `char git_short_hash[8]`
185
180
- the git hash of the commit that was flashed to the
186
181
187
-
## Drivebrain Interface
182
+
## Drivebrain Interface requirements
188
183
189
-
### CAN interface
184
+
### CAN interface requirements
190
185
191
186
#### preface
192
187
__NOTE__: the following messages that are on the bus are listened to by the drivebrain and are output from other boards (not VCR)
@@ -195,31 +190,34 @@ __NOTE__: the following messages that are on the bus are listened to by the driv
195
190
196
191
VCR Outputs:
197
192
198
-
- VCR suspension data CAN packet:
193
+
-`REAR_SUSPENSION` (`0E4`) VCR suspension data CAN packet: (200hz)
199
194
-`uint16_t rl_load_cell`
200
195
-`uint16_t rr_load_cell`
201
196
-`uint16_t rl_shock_pot`
202
197
-`uint16_t rr_shock_pot`
203
198
204
-
- VCR status CAN packet:
205
-
- vehicle state (oneof: RTD, tractive system enabled, etc.)
206
-
- control mode
207
-
- VCR
208
-
- VCR error state word
209
-
- drivebrain timeout, VCF timeout, VCR firmware error, etc.
210
-
211
-
VCR inputs (sent by drivebrain):
212
-
- desired RPMs
213
-
-`int16_t fl_rpm`
214
-
-`int16_t fr_rpm`
215
-
-`int16_t rl_rpm`
216
-
-`int16_t rr_rpm`
217
-
218
-
- torque limits
199
+
- VCR status CAN packet: (5hz)
200
+
-`uint8_t vehicle_state_index`: vehicle state enum index (oneof: RTD, tractive system enabled, etc.)
201
+
-`uint8_t control_mode_index` control mode index (MODE0 through MODE5)
202
+
-`uint16_t vcr_error_state_word` VCR error state word
0 commit comments