Hyundai CAN: log nonAdaptive cruise state (#29880)

* log nonAdaptive

* bump opendbc

* test labeler

* test labeler 2

* revert
This commit is contained in:
Shane Smiskol
2023-09-12 00:09:09 -07:00
committed by GitHub
parent a87d62ffa6
commit 3d60e8a2a0
2 changed files with 3 additions and 1 deletions
+1 -1
Submodule opendbc updated: 966e16c31e...8d2f614ce3
+2
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