Hyundai CAN: log nonAdaptive cruise state (#29880)

* log nonAdaptive

* bump opendbc

* test labeler

* test labeler 2

* revert
old-commit-hash: 3d60e8a2a056fc798c23734377f1e3883b115a32
This commit is contained in:
Shane Smiskol
2023-09-12 00:09:09 -07:00
committed by GitHub
parent 490613e5e4
commit 8f7c39faf1
2 changed files with 3 additions and 1 deletions

Submodule opendbc updated: 966e16c31e...8d2f614ce3

View File

@@ -105,10 +105,12 @@ class CarState(CarStateBase):
ret.cruiseState.available = cp.vl["TCS13"]["ACCEnable"] == 0
ret.cruiseState.enabled = cp.vl["TCS13"]["ACC_REQ"] == 1
ret.cruiseState.standstill = False
ret.cruiseState.nonAdaptive = False
else:
ret.cruiseState.available = cp_cruise.vl["SCC11"]["MainMode_ACC"] == 1
ret.cruiseState.enabled = cp_cruise.vl["SCC12"]["ACCMode"] != 0
ret.cruiseState.standstill = cp_cruise.vl["SCC11"]["SCCInfoDisplay"] == 4.
ret.cruiseState.nonAdaptive = cp_cruise.vl["SCC11"]["SCCInfoDisplay"] == 2. # Shows 'Cruise Control' on dash
ret.cruiseState.speed = cp_cruise.vl["SCC11"]["VSetDis"] * speed_conv
# TODO: Find brake pressure