Mazda: fix potential standstill panda mismatch (#31449)

* repro mazda standstill mismatch

* fix mazda standstill mismatch

* clean up
This commit is contained in:
Shane Smiskol
2024-02-14 00:02:04 -06:00
committed by GitHub
parent 136dc0313a
commit b163c1f255
+1 -1
View File
@@ -32,7 +32,7 @@ class CarState(CarStateBase):
# Match panda speed reading
speed_kph = cp.vl["ENGINE_DATA"]["SPEED"]
ret.standstill = speed_kph < .1
ret.standstill = speed_kph <= .1
can_gear = int(cp.vl["GEAR"]["GEAR"])
ret.gearShifter = self.parse_gear_shifter(self.shifter_values.get(can_gear, None))