From 2a8c9400970cf41d94caefd4e3903b8fc7baee49 Mon Sep 17 00:00:00 2001 From: 1okko <15377594951@189.cn> Date: Wed, 21 Oct 2026 20:00:15 +0800 Subject: [PATCH] test: sync selfdrived bookmark and model settling behavior --- openpilot/selfdrive/selfdrived/selfdrived.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openpilot/selfdrive/selfdrived/selfdrived.py b/openpilot/selfdrive/selfdrived/selfdrived.py index fddcae6d3..b0da11d10 100755 --- a/openpilot/selfdrive/selfdrived/selfdrived.py +++ b/openpilot/selfdrive/selfdrived/selfdrived.py @@ -205,6 +205,7 @@ class SelfdriveD: big_failed = big_active is False or model_unavailable or (self.big_model_active and not chestnut_present) if big_failed and not self.big_model_failed: self.events.add(EventName.bigModelFailed) + self.big_model_ready_t = time.monotonic() self.big_model_failed = big_failed # soft disable if the big model fails @@ -232,7 +233,9 @@ class SelfdriveD: # Check for user bookmark press if self.sm.updated['userBookmark']: - self.events.add(EventName.userBookmark) + prime_type = self.params.get("PrimeType") + paired = prime_type is not None and int(prime_type) >= 0 + self.events.add(EventName.userBookmark if paired else EventName.userBookmarkNotPaired) # Don't add any more events while in dashcam mode if self.CP.passive: @@ -502,7 +505,7 @@ class SelfdriveD: # TODO: fix simulator if not SIMULATION or REPLAY: - if self.sm['modelV2'].frameDropPerc > 1: + if self.sm['modelV2'].frameDropPerc > 1 and not big_model_settling: self.events.add(EventName.modeldLagging) # mute canBusMissing event if in Park, as it sometimes may trigger a false alarm with MADS in Paused state