mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 04:03:40 +08:00
ui: one helper for received since started (#39382)
This commit is contained in:
committed by
firestar5683
parent
5d590cc382
commit
9f0acb2c70
@@ -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