openpilot
openpilot copied to clipboard
Genesis GV70 2022 port
GV70 Car port
Checklist
- [x] added entry to CarInfo in selfdrive/car/*/values.py and ran
selfdrive/car/docs.pyto generate new docs - [x] test route added to routes.py
- [x] route with openpilot: ca4de5b12321bd98|2022-08-22--20-23-34
- [x] route with stock system: ca4de5b12321bd98|2022-08-22--20-20-29
** Previous PR was #25140. Got too far away from master so easier to create new PR.
TODOs
- [ ] Fix _COUNTER for CRUISE_BUTTON
- [ ] Fix panda - wait until we figure out this code first
- [ ] Attempt to merge gv70 specific dbc file with generic canfd
GV70 Differences
-
Gas/Brake: Are both on ACCELERATOR_ALT GV70: ret.gasPressed = cp.vl["ACCELERATOR_ALT"]["ACCELERATOR_PEDAL_PRESSED"] == 1 ret.brakePressed = cp.vl["ACCELERATOR_ALT"]["BRAKE_PRESSED"] == 1 Normal HDA: ret.gasPressed = ret.gas > 1e-5 ret.brakePressed = cp.vl["BRAKE"]["BRAKE_PRESSED"] == 1
-
CRUISE_BUTTON: need to use _COUNTER GV70: Checksum: 8 bits Counter: 4 bits Normal: Checksum: 16 Counter: 8
-
CRUISE_BUTTONS is on bus 4, not 5
-
get_can_parser_canfd signals are on bus 4 not 6
@adeebshihadeh I created a new PR as my other branch got too far away from master.
closing this PR, moving to #25434