Compile FrogPilot

This commit is contained in:
FrogAi
2024-03-10 20:59:55 -07:00
parent 69e7feaf01
commit f1acd339d7
1485 changed files with 426154 additions and 398339 deletions

View File

@@ -1,24 +0,0 @@
#!/usr/bin/env python3
import os
import time
from panda import Panda
if __name__ == "__main__":
flag_set = False
while True:
try:
with Panda(disable_checks=False) as p:
if not flag_set:
p.set_heartbeat_disabled()
p.set_safety_mode(Panda.SAFETY_ELM327, 30)
flag_set = True
# shutdown when told
dt = p.get_datetime()
if dt.year == 2040 and dt.month == 8:
os.system("sudo poweroff")
except Exception as e:
print(str(e))
time.sleep(0.5)