Update carstate.py (#135)

ret.gearStep = cp.vl["GEAR"]["GEAR_BOX"]
This commit is contained in:
机械小鸽 2025-02-19 06:18:16 +08:00 committed by GitHub
parent 4b162c1a39
commit f03e37d446
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,6 +60,7 @@ class CarState(CarStateBase):
can_gear = int(cp.vl["GEAR"]["GEAR"])
ret.gearShifter = self.parse_gear_shifter(self.shifter_values.get(can_gear, None))
ret.gearStep = cp.vl["GEAR"]["GEAR_BOX"]
ret.genericToggle = bool(cp.vl["BLINK_INFO"]["HIGH_BEAMS"])
ret.leftBlindspot = cp.vl["BSM"]["LEFT_BS_STATUS"] != 0