Scope ordinary Ford native lookup to configured Ford cars

This commit is contained in:
firestar5683
2026-10-31 14:54:27 -05:00
parent 58c38a4834
commit 8a760a3381
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -1788,9 +1788,8 @@ class SelfdriveD:
# Established ordinary Ford cruise does not require an independent AOL latch.
# Its native LONG pedal withdrawal may precede Card; the original combined
# publication, live LAT grant and every health/deadline check below still apply.
ford_word = self.CP.safetyConfigs[-1].safetyParam
ordinary_ford = bool(self.CP.openpilotLongitudinalControl and
ford_native_accepts_cp(self.CP, int(car.CarParams.SafetyModel.ford), ford_word))
ordinary_ford = bool(self.CP.brand == 'ford' and self.CP.openpilotLongitudinalControl and self.CP.safetyConfigs and
ford_native_accepts_cp(self.CP, int(car.CarParams.SafetyModel.ford), self.CP.safetyConfigs[-1].safetyParam))
proof = getattr(self, 'aol_published_input_proof', None)
prior = getattr(self, 'aol_published_input_native', None)
anchor = getattr(self, 'aol_ordinary_source_anchor', None)
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "4b45cdc16c0b5f192b71940c28bab3704ef3ed6962a9d78fb575174b079ea771", "schema_version": 1}
{"protected_inventory_sha256": "d883a2889150d0426b0cd382349553be92033bbb3017d381ffe7fe7efa5661b5", "schema_version": 1}