Skip to content

Commit

Permalink
temporary hack for accel override
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Dec 28, 2023
1 parent 5c3fd81 commit 6df6d61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion board/safety/safety_volkswagen_mqb.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ static bool volkswagen_mqb_tx_hook(CANPacket_t *to_send) {
desired_accel = (((GET_BYTE(to_send, 7) << 3) | ((GET_BYTE(to_send, 6) & 0xE0U) >> 5)) * 5U) - 7220U;
}

violation |= longitudinal_accel_checks(desired_accel, VOLKSWAGEN_MQB_LONG_LIMITS);
if (desired_accel != 0) {
violation |= longitudinal_accel_checks(desired_accel, VOLKSWAGEN_MQB_LONG_LIMITS);
}

if (violation) {
tx = false;
Expand Down

0 comments on commit 6df6d61

Please sign in to comment.