Listen for PowertrainData_10 only on NON ALT_STEER_ANGLE and automatic

This commit is contained in:
Blue Genie 2024-09-16 07:40:22 -05:00 committed by GitHub
parent 8172bab592
commit d6cd4c2806
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -208,6 +208,10 @@ class CarState(CarStateBase):
messages += [
("SteeringPinion_Data", 100),
]
if CP.transmissionType == TransmissionType.automatic:
messages += [
("PowertrainData_10",10)
]
if CP.flags & FordFlags.CANFD:
messages += [
("Lane_Assist_Data3_FD1", 33),
@ -221,7 +225,6 @@ class CarState(CarStateBase):
if CP.transmissionType == TransmissionType.automatic:
messages += [
("Gear_Shift_by_Wire_FD1", 10),
("PowertrainData_10",10)
]
elif CP.transmissionType == TransmissionType.manual:
messages += [