Skip to content

Commit

Permalink
update DAS_6 message size
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Dec 5, 2023
1 parent 8bef7e7 commit c6d9bb6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions board/safety/safety_chrysler_cusw.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ typedef struct {
const int ACCEL_GAS;
const int LKAS_COMMAND;
const int CRUISE_BUTTONS;
const int LKAS_HUD;
const int DAS_6;
const int ACC_1;
} ChryslerCuswAddrs;

Expand All @@ -27,14 +27,14 @@ const ChryslerCuswAddrs CHRYSLER_CUSW_ADDRS = {
.ACCEL_GAS = 0x1FE,
.LKAS_COMMAND = 0x1F6,
.CRUISE_BUTTONS = 0x2FA,
.LKAS_HUD = 0x5DC,
.DAS_6 = 0x5DC,
.ACC_1 = 0x3EE,
};

const CanMsg CHRYSLER_CUSW_TX_MSGS[] = {
{CHRYSLER_CUSW_ADDRS.CRUISE_BUTTONS, 0, 8},
{CHRYSLER_CUSW_ADDRS.LKAS_COMMAND, 0, 4},
{CHRYSLER_CUSW_ADDRS.LKAS_HUD, 0, 8},
{CHRYSLER_CUSW_ADDRS.DAS_6, 0, 4},
};

RxCheck chrysler_cusw_rx_checks[] = {
Expand Down Expand Up @@ -169,7 +169,7 @@ static int chrysler_cusw_fwd_hook(int bus_num, int addr) {
}

// forward all messages from camera except LKAS messages
const bool is_lkas = ((addr == chrysler_cusw_addrs->LKAS_COMMAND) || (addr == chrysler_cusw_addrs->LKAS_HUD));
const bool is_lkas = ((addr == chrysler_cusw_addrs->LKAS_COMMAND) || (addr == chrysler_cusw_addrs->DAS_6));
if ((bus_num == 2) && !is_lkas){
bus_fwd = 0;
}
Expand Down

0 comments on commit c6d9bb6

Please sign in to comment.