mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-26 01:13:46 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
21 lines
666 B
Python
21 lines
666 B
Python
"""
|
|
Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors.
|
|
|
|
This file is part of sunnypilot and is licensed under the MIT License.
|
|
See the LICENSE.md file in the root directory for more details.
|
|
"""
|
|
|
|
from cereal import messaging, custom
|
|
|
|
if __name__ == "__main__":
|
|
sm = messaging.SubMaster(["modelManagerSP"])
|
|
while True:
|
|
sm.update(500)
|
|
if sm.updated:
|
|
msg = sm["modelManagerSP"]
|
|
for model in msg.selectedBundle.models:
|
|
if model.downloadProgress.status == custom.ModelManagerSP.DownloadStatus.downloading:
|
|
print("")
|
|
print(f"{model.fileName}: {model.downloadProgress}")
|
|
print("")
|