mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-09 19:39:00 +08:00
Subaru: set cruiseState.standstill (#25320)
* Subaru: set cruiseState.standstill * only global old-commit-hash: 9eb27259c7b9bf267671b16d17ae9a21b43105f3
This commit is contained in:
@@ -57,6 +57,9 @@ class CarState(CarStateBase):
|
||||
ret.cruiseState.available = cp_cruise.vl["CruiseControl"]["Cruise_On"] != 0
|
||||
ret.cruiseState.speed = cp_cam.vl["ES_DashStatus"]["Cruise_Set_Speed"] * CV.KPH_TO_MS
|
||||
|
||||
if self.car_fingerprint not in PREGLOBAL_CARS:
|
||||
ret.cruiseState.standstill = cp_cam.vl["ES_DashStatus"]["Cruise_State"] == 3
|
||||
|
||||
if (self.car_fingerprint in PREGLOBAL_CARS and cp.vl["Dash_State2"]["UNITS"] == 1) or \
|
||||
(self.car_fingerprint not in PREGLOBAL_CARS and cp.vl["Dashlights"]["UNITS"] == 1):
|
||||
ret.cruiseState.speed *= CV.MPH_TO_KPH
|
||||
|
||||
@@ -1 +1 @@
|
||||
01e23eec1394b07d2c537f0e28493b10e05923c2
|
||||
20c140b10eef52b6f6d6b9e142ed944264865bac
|
||||
Reference in New Issue
Block a user