Skip to content

Commit

Permalink
comment labeling for STEERING_LTA_2 signals
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Oct 2, 2024
1 parent 52fb1e7 commit c027a6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions board/safety/safety_toyota.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ static bool toyota_tx_hook(const CANPacket_t *to_send) {

// SecOC cars block any form of LTA actuation for now
if (toyota_secoc && (addr == 0x131)) {
bool lta_request = GET_BIT(to_send, 3U);
bool lta_request2 = GET_BIT(to_send, 0U);
int lta_angle_msb = GET_BYTE(to_send, 2);
int lta_angle_lsb = GET_BYTE(to_send, 3);
bool lta_request = GET_BIT(to_send, 3U); // STEERING_LTA_2.STEER_REQUEST
bool lta_request2 = GET_BIT(to_send, 0U); // STEERING_LTA_2.STEER_REQUEST_2
int lta_angle_msb = GET_BYTE(to_send, 2); // STEERING_LTA_2.STEER_ANGLE_CMD (MSB)
int lta_angle_lsb = GET_BYTE(to_send, 3); // STEERING_LTA_2.STEER_ANGLE_CMD (LSB)

bool actuation = lta_request || lta_request2 || (lta_angle_msb != 0) || (lta_angle_lsb != 0);
if (actuation) {
Expand Down

0 comments on commit c027a6a

Please sign in to comment.