Skip to content

Commit

Permalink
Honda: fixed message forwarding addresses from can2 to can0
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Nov 10, 2018
1 parent 799c338 commit 293fa33
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions board/safety/safety_honda.h
Expand Up @@ -147,12 +147,14 @@ static void honda_bosch_init(int16_t param) {

static int honda_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) {
// fwd from car to camera. also fwd certain msgs from camera to car
// 0xE4 is steering on all cars except CRV and RDX. 0x194 for CRV and RDX
// 0xE4 is steering on all cars except CRV and RDX, 0x194 for CRV and RDX,
// 0x1FA is brake control, 0x30C is acc hud, 0x33D is lkas hud,
// 0x39f is radar hud
int addr = to_fwd->RIR>>21;
if (bus_num == 0) {
return 2;
} else if (bus_num == 2 && addr != 0xE4 && addr != 0x1FA && addr != 0x30C &&
addr != 0x33D && addr != 0x35E && addr != 0x39E && addr != 0x194) {
} else if (bus_num == 2 && addr != 0xE4 && addr != 0x194 && addr != 0x1FA &&
addr != 0x30C && addr != 0x33D && addr != 0x39F) {
return 0;
}

Expand Down

0 comments on commit 293fa33

Please sign in to comment.