GM Cam: log when cruise not adaptive (#26581)

* bump opendbc

* log when nonAdaptive

* Update ref_commit
This commit is contained in:
Shane Smiskol
2022-11-22 15:18:10 -08:00
committed by GitHub
parent 4662f1e0be
commit 9fdbe9f397
3 changed files with 6 additions and 2 deletions

Submodule opendbc updated: 296f190000...871e054d9a

View File

@@ -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),

View File

@@ -1 +1 @@
959e63af52d9efdb62156cab4b773f88b154fd75
ff508a46616a1a3d66e8d1154d123ffd11025003