mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-03 20:43:50 +08:00
ui: one helper for received since started (#39382)
This commit is contained in:
committed by
firestar5683
parent
43b1759b2c
commit
b34334dbbd
@@ -224,6 +224,9 @@ class UIState:
|
||||
def is_offroad(self) -> bool:
|
||||
return not self.started
|
||||
|
||||
def received_since_started(self, service: str) -> bool:
|
||||
return self.sm.recv_frame[service] >= self.started_frame
|
||||
|
||||
def update(self) -> None:
|
||||
if getattr(self, "replay_clock", None) is not None:
|
||||
before = self.replay_clock.sample()
|
||||
|
||||
Reference in New Issue
Block a user