mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-14 05:42:13 +08:00
27 lines
549 B
Python
27 lines
549 B
Python
#!/usr/bin/env python3
|
|
import threading
|
|
import time
|
|
|
|
from openpilot.common.time_helpers import system_time_valid
|
|
from openpilot.system.hardware import HARDWARE
|
|
|
|
|
|
def frogpilot_boot_functions():
|
|
def boot_thread():
|
|
while not system_time_valid():
|
|
print("Waiting for system time to become valid...")
|
|
time.sleep(1)
|
|
|
|
threading.Thread(target=boot_thread, daemon=True).start()
|
|
|
|
|
|
def install_frogpilot():
|
|
paths = [
|
|
]
|
|
for path in paths:
|
|
path.mkdir(parents=True, exist_ok=True)
|
|
|
|
|
|
def uninstall_frogpilot():
|
|
HARDWARE.uninstall()
|