mazda gen3

This commit is contained in:
MoreTore
2025-06-05 15:09:07 -05:00
parent 36a2d5358d
commit 53be512377
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -300,12 +300,11 @@ class CarState(CarStateBase):
@staticmethod
def get_can_parser(CP, FPCP):
messages = [
("CRZ_BTNS", 10),
]
messages = []
if not (CP.flags & (MazdaFlags.GEN2 | MazdaFlags.GEN3)):
messages += [
# sig_address, frequency
("CRZ_BTNS", 10)
("BLINK_INFO", 10),
("STEER", 67),
("STEER_RATE", 83),
@@ -348,6 +347,7 @@ class CarState(CarStateBase):
("ENGINE_DATA", 100),
("BLINK_INFO", 10),
("WHEEL_SPEEDS", 50),
("STEER", 50),
]
return CANParser(DBC[CP.carFingerprint]["pt"], messages, 0)
+1 -1
View File
@@ -31,7 +31,7 @@ class CarControllerParams:
self.TI_STEER_DRIVER_MULTIPLIER = 40 # weight driver torque
self.TI_STEER_DRIVER_FACTOR = 1 # from dbc
self.TI_STEER_ERROR_MAX = 350 # max delta between torque cmd and torque motor
if CP.flags & MazdaFlags.GEN2:
if CP.flags & (MazdaFlags.GEN2 | MazdaFlags.GEN3):
self.STEER_MAX = 8000
self.STEER_DELTA_UP = 45 # torque increase per refresh
self.STEER_DELTA_DOWN = 80 # torque decrease per refresh