mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-27 15:23:53 +08:00
GM Cam: log when cruise not adaptive (#26581)
* bump opendbc * log when nonAdaptive * Update ref_commit
This commit is contained in:
2
opendbc
2
opendbc
Submodule opendbc updated: 296f190000...871e054d9a
@@ -100,6 +100,9 @@ class CarState(CarStateBase):
|
||||
if self.CP.networkLocation == NetworkLocation.fwdCamera:
|
||||
ret.cruiseState.speed = cam_cp.vl["ASCMActiveCruiseControlStatus"]["ACCSpeedSetpoint"] * CV.KPH_TO_MS
|
||||
ret.stockAeb = cam_cp.vl["AEBCmd"]["AEBCmdActive"] != 0
|
||||
# openpilot controls nonAdaptive when not pcmCruise
|
||||
if self.CP.pcmCruise:
|
||||
ret.cruiseState.nonAdaptive = cam_cp.vl["ASCMActiveCruiseControlStatus"]["ACCCruiseState"] not in (2, 3)
|
||||
|
||||
return ret
|
||||
|
||||
@@ -112,6 +115,7 @@ class CarState(CarStateBase):
|
||||
("AEBCmdActive", "AEBCmd"),
|
||||
("RollingCounter", "ASCMLKASteeringCmd"),
|
||||
("ACCSpeedSetpoint", "ASCMActiveCruiseControlStatus"),
|
||||
("ACCCruiseState", "ASCMActiveCruiseControlStatus"),
|
||||
]
|
||||
checks += [
|
||||
("AEBCmd", 10),
|
||||
|
||||
@@ -1 +1 @@
|
||||
959e63af52d9efdb62156cab4b773f88b154fd75
|
||||
ff508a46616a1a3d66e8d1154d123ffd11025003
|
||||
|
||||
Reference in New Issue
Block a user