Skip to content

Commit

Permalink
VW can based ignition not needed. it has ignition line at camera as w…
Browse files Browse the repository at this point in the history
…ell.
  • Loading branch information
rbiasini committed Dec 4, 2019
1 parent 1b004a1 commit 96137f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions board/drivers/can.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,6 @@ void ignition_can_hook(CAN_FIFOMailBox_TypeDef *to_push) {
// this message isn't all zeros when ignition is on
ignition_can = GET_BYTES_04(to_push) != 0;
}
// VW exception
if ((addr == 0x3C0) && (len == 4)) {
// VW Terminal 15 (ignition-on) state
ignition_can = (GET_BYTE(to_push, 2) & 0x2) != 0;
}
}
}

Expand Down
1 change: 0 additions & 1 deletion board/safety/safety_volkswagen.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#define MSG_HCA_01 0x126
#define MSG_GRA_ACC_01 0x12B
#define MSG_LDW_02 0x397
#define MSG_KLEMMEN_STATUS_01 0x3C0

const int VOLKSWAGEN_MAX_STEER = 250; // 2.5 Nm (EPS side max of 3.0Nm with fault if violated)
const int VOLKSWAGEN_MAX_RT_DELTA = 75; // 4 max rate up * 50Hz send rate * 250000 RT interval / 1000000 = 50 ; 50 * 1.5 for safety pad = 75
Expand Down

0 comments on commit 96137f1

Please sign in to comment.