Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kia Sorento and future Multi-Car Support #346

Merged
merged 28 commits into from
Sep 9, 2018
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bea839c
hyundai WIP
rbiasini Aug 28, 2018
7376209
steer_driver_factor is 1
rbiasini Aug 28, 2018
4314efa
removed unnecessary file
rbiasini Aug 28, 2018
3f3075e
removed unnecessary code
rbiasini Aug 29, 2018
95b7919
Update carcontroller.py
rbiasini Aug 29, 2018
5e76750
safety tuning and fixed interface stiffness
rbiasini Aug 29, 2018
c92c08f
better lateral tuning, some fixes
rbiasini Aug 30, 2018
26c36df
Fix set speed
rbiasini Aug 30, 2018
2ca147f
Merge branch 'devel' of github.com:commaai/openpilot into hyundai-rea…
rbiasini Sep 1, 2018
96f54e3
added camera state reading, autoresume from stop, cancel on accel, hu…
rbiasini Sep 1, 2018
22688e0
WIP
emmertex Sep 2, 2018
07a8b3a
Updated for Kia Sorento *WIP*
emmertex Sep 2, 2018
9c02498
Cleanup
emmertex Sep 2, 2018
87d7549
clean2
emmertex Sep 2, 2018
c4a6506
Bug Fixes
emmertex Sep 4, 2018
119f48d
pre-merge
emmertex Sep 4, 2018
3df5a09
Merge remote-tracking branch 'upstream/devel' into hyundai-dev
emmertex Sep 4, 2018
9f1bba6
Add all the cars!
emmertex Sep 4, 2018
c08d305
Panda to auto-detect Camera Bus
emmertex Sep 4, 2018
d7ca4ce
Move Checksum Check
emmertex Sep 4, 2018
bb27195
Final Sorento Tuning
emmertex Sep 5, 2018
1fddd38
Make CAN3 for Cam default
emmertex Sep 5, 2018
6b51095
Update README.md
emmertex Sep 5, 2018
e6b0432
update panda, minor aesthetic updates
rbiasini Sep 5, 2018
ad17983
few other minor changes
rbiasini Sep 6, 2018
7980457
added steer not allowed alert
rbiasini Sep 6, 2018
1d67a26
bup panda version to force panda update
rbiasini Sep 6, 2018
f4e8926
fixed camera alerts
rbiasini Sep 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions panda/board/safety/safety_hyundai.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,10 @@ static int hyundai_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) {
}

static int hyundai_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) {

// forward camera to car and viceversa, excpet for lkas11 and mdps12
if ((bus_num == 0 || bus_num == 1)) { // && !hyundai_giraffe_switch_1) {
// forward cam to ccan and viceversa, except lkas cmd
if ((bus_num == 0 || bus_num == 2) && hyundai_giraffe_switch_2) {
int addr = to_fwd->RIR>>21;
bool is_lkas_msg = (addr == 832 && bus_num == 1) || (addr == 593 && bus_num == 0);
bool is_lkas_msg = addr == 832 && bus_num == 2;
return is_lkas_msg? -1 : (uint8_t)(~bus_num & 0x2);
}
return -1;
Expand Down
1 change: 1 addition & 0 deletions selfdrive/car/hyundai/hyundaican.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

hyundai_checksum = crcmod.mkCrcFun(0x11D, initCrc=0xFD, rev=False, xorOut=0xdf)

<<<<<<< HEAD

emmertex marked this conversation as resolved.
Show resolved Hide resolved
def make_can_msg(addr, dat, alt):
return [addr, 0, dat, alt]
Expand Down
7 changes: 2 additions & 5 deletions selfdrive/car/hyundai/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ class Buttons:
}],
}

#CAMERA_MSGS = {
# CAR.SANTA_FE: [832, 1156, 1191, 1342], # msgs sent by the camera
CAMERA_MSGS = [832, 1156]
#}
CAMERA_MSGS = [832, 1156, 1191, 1342] # msgs sent by the camera

CHECKSUM = {
CAR.SANTA_FE: 0,
Expand All @@ -38,4 +35,4 @@ class Buttons:
DBC = {
CAR.SANTA_FE: dbc_dict('hyundai_santa_fe_2019_ccan', None),
CAR.SORENTO: dbc_dict('hyundai_santa_fe_2019_ccan', None),
}
}