mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
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: d7d751160de3899c52a51654701505e3aa24eb66
This commit is contained in:
+1
-1
Submodule panda updated: 104d708547...39bc5a4886
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user