mirror of https://github.com/commaai/panda.git
Toyota frc on (#141)
* Honda: forwarding CAN0 to camera, so camera can stay on * forward cam on toyota * fwd some honda camera msgs * add crv and rdx steering msg to honda fwd filter * only fwd cam on toyota if frc is connected * toyota: remove unused variables * toyota: don't forward frc bus when switch 1 is high * toyota: check when switch 1 is high
This commit is contained in:
parent
8291971d9a
commit
c05b15b358
|
@ -64,6 +64,11 @@ static void toyota_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) {
|
|||
if (bus == 2) {
|
||||
toyota_camera_forwarded = 1;
|
||||
}
|
||||
|
||||
// 0x2E4 is lkas cmd. If it is on bus 0, then giraffe switch 1 is high
|
||||
if ((to_push->RIR>>21) == 0x2E4 && (bus == 0)) {
|
||||
toyota_giraffe_switch_1 = 1;
|
||||
}
|
||||
}
|
||||
|
||||
static int toyota_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) {
|
||||
|
|
Loading…
Reference in New Issue