mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-22 00:33:48 +08:00
Mazda: fix potential standstill panda mismatch (#31449)
* repro mazda standstill mismatch * fix mazda standstill mismatch * clean up
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user