mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
Mazda: Fix BSM detection with blinkers (#27919)
* Mazda: Fix BSM detection Submitted-by: Samuel <samuel95_54@hotmail.com> Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> * bump opendbc * use new signals --------- Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> Co-authored-by: Shane Smiskol <shane@smiskol.com>
This commit is contained in:
committed by
GitHub
parent
90c0edcd6a
commit
354b5be9c3
2
opendbc
2
opendbc
Submodule opendbc updated: 87b821e0e5...d03ae519e9
@@ -38,8 +38,8 @@ class CarState(CarStateBase):
|
||||
ret.gearShifter = self.parse_gear_shifter(self.shifter_values.get(can_gear, None))
|
||||
|
||||
ret.genericToggle = bool(cp.vl["BLINK_INFO"]["HIGH_BEAMS"])
|
||||
ret.leftBlindspot = cp.vl["BSM"]["LEFT_BS1"] == 1
|
||||
ret.rightBlindspot = cp.vl["BSM"]["RIGHT_BS1"] == 1
|
||||
ret.leftBlindspot = cp.vl["BSM"]["LEFT_BS_STATUS"] != 0
|
||||
ret.rightBlindspot = cp.vl["BSM"]["RIGHT_BS_STATUS"] != 0
|
||||
ret.leftBlinker, ret.rightBlinker = self.update_blinker_from_lamp(40, cp.vl["BLINK_INFO"]["LEFT_BLINK"] == 1,
|
||||
cp.vl["BLINK_INFO"]["RIGHT_BLINK"] == 1)
|
||||
|
||||
@@ -151,8 +151,8 @@ class CarState(CarStateBase):
|
||||
("PEDAL_GAS", "ENGINE_DATA"),
|
||||
("SPEED", "ENGINE_DATA"),
|
||||
("CTR", "CRZ_BTNS"),
|
||||
("LEFT_BS1", "BSM"),
|
||||
("RIGHT_BS1", "BSM"),
|
||||
("LEFT_BS_STATUS", "BSM"),
|
||||
("RIGHT_BS_STATUS", "BSM"),
|
||||
]
|
||||
|
||||
checks += [
|
||||
|
||||
Reference in New Issue
Block a user