Nissan Altima: specify panda flag for alternate EPS bus (#29783)

* Nissan Altima: Specify panda flag for alt bus safety config

* bump

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: d7d751160d
This commit is contained in:
Jason Wen
2023-09-06 03:48:17 -04:00
committed by GitHub
parent 52c3d176c1
commit 30e06a8dd3
2 changed files with 3 additions and 2 deletions
+1 -1
Submodule panda updated: 104d708547...39bc5a4886
+2 -1
View File
@@ -1,4 +1,5 @@
from cereal import car
from panda import Panda
from openpilot.selfdrive.car import get_safety_config
from openpilot.selfdrive.car.interfaces import CarInterfaceBase
from openpilot.selfdrive.car.nissan.values import CAR
@@ -30,7 +31,7 @@ class CarInterface(CarInterfaceBase):
ret.centerToFront = ret.wheelbase * 0.44
elif candidate == CAR.ALTIMA:
# Altima has EPS on C-CAN unlike the others that have it on V-CAN
ret.safetyConfigs[0].safetyParam = 1 # EPS is on alternate bus
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_NISSAN_ALT_EPS_BUS
ret.mass = 1492
ret.wheelbase = 2.824
ret.centerToFront = ret.wheelbase * 0.44