Hyundai: always update set speed (#24104)

* don't reset set speed

* update refs
This commit is contained in:
Shane Smiskol
2022-04-04 10:51:58 -07:00
committed by GitHub
parent d1c3b7a20d
commit 18e7f85f70
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -59,12 +59,8 @@ class CarState(CarStateBase):
ret.cruiseState.available = cp.vl["SCC11"]["MainMode_ACC"] == 1
ret.cruiseState.enabled = cp.vl["SCC12"]["ACCMode"] != 0
ret.cruiseState.standstill = cp.vl["SCC11"]["SCCInfoDisplay"] == 4.
if ret.cruiseState.enabled:
speed_conv = CV.MPH_TO_MS if cp.vl["CLU11"]["CF_Clu_SPEED_UNIT"] else CV.KPH_TO_MS
ret.cruiseState.speed = cp.vl["SCC11"]["VSetDis"] * speed_conv
else:
ret.cruiseState.speed = 0
speed_conv = CV.MPH_TO_MS if cp.vl["CLU11"]["CF_Clu_SPEED_UNIT"] else CV.KPH_TO_MS
ret.cruiseState.speed = cp.vl["SCC11"]["VSetDis"] * speed_conv
# TODO: Find brake pressure
ret.brake = 0
+1 -1
View File
@@ -1 +1 @@
ca3171c0f912afec3a349ce8ca0a4d7e41cd7127
abe47ced1758bb6017e61ccf4e8cf19d0b71819e