Skip to content

Commit

Permalink
Ford: fix cruise state for engaged
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Dec 28, 2021
1 parent b7bc27e commit a1a6bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/safety/safety_ford.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static int ford_rx_hook(CANPacket_t *to_push) {

// Signal: CcStat_D_Actl
unsigned int cruise_state = (GET_BYTE(to_push, 1) & 0x07U);
bool cruise_engaged = (cruise_state == 0U) || (cruise_state == 3U);
bool cruise_engaged = cruise_state == 5U;

// Enter controls on rising edge of stock ACC, exit controls if stock ACC disengages
if (cruise_engaged && !cruise_engaged_prev) {
Expand Down

0 comments on commit a1a6bc0

Please sign in to comment.