From 60dc8bd2f21084a4b51b6c25f6258c392e0064f6 Mon Sep 17 00:00:00 2001 From: Kurt Nistelberger Date: Mon, 2 Jan 2023 10:28:03 -0800 Subject: [PATCH] add more log --- selfdrive/locationd/laikad.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selfdrive/locationd/laikad.py b/selfdrive/locationd/laikad.py index f65a8023e3..fa3e3e03e9 100755 --- a/selfdrive/locationd/laikad.py +++ b/selfdrive/locationd/laikad.py @@ -416,6 +416,8 @@ def main(sm=None, pm=None, qc=None): use_internet = "LAIKAD_NO_INTERNET" not in os.environ laikad = Laikad(save_ephemeris=not replay, auto_fetch_orbits=use_internet, use_qcom=use_qcom) + log_done = False + while True: sm.update() @@ -434,6 +436,10 @@ def main(sm=None, pm=None, qc=None): if laikad.auto_fetch_orbits: laikad.fetch_orbits(t, block=replay) + if log_done: + debug_log_cache() + log_done = True + if __name__ == "__main__": main()