Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
fix safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
neokii committed Sep 8, 2022
1 parent 3dbb011 commit f161ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panda/board/safety/safety_hyundai_community.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ static int hyundai_community_tx_hook(CANPacket_t *to_send, bool longitudinal_all
if (addr == 832) {
LKAS11_op = 20;
int desired_torque = ((GET_BYTES_04(to_send) >> 16) & 0x7ff) - 1024;
//bool steer_req = GET_BIT(to_send, 27U) != 0U;
bool steer_req = GET_BIT(to_send, 27U) != 0U;

if (steer_torque_cmd_checks(desired_torque, 1, HYUNDAI_STEERING_LIMITS)) {
if (steer_torque_cmd_checks(desired_torque, steer_req, HYUNDAI_STEERING_LIMITS)) {
tx = 0;
}
}
Expand Down

0 comments on commit f161ca6

Please sign in to comment.