mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-04 15:13:58 +08:00
7d7f0054e5
date: 2024-02-21T23:02:42 master commit: 0b4d08fab8e35a264bc7383e878538f8083c33e5
22 lines
358 B
Python
Executable File
22 lines
358 B
Python
Executable File
#!/usr/bin/env python3
|
|
import time
|
|
from pprint import pprint
|
|
|
|
from panda import PandaJungle
|
|
|
|
if __name__ == "__main__":
|
|
i = 0
|
|
pi = 0
|
|
|
|
pj = PandaJungle()
|
|
while True:
|
|
st = time.monotonic()
|
|
while time.monotonic() - st < 1:
|
|
pj.health()
|
|
pj.can_health(0)
|
|
i += 1
|
|
pprint(pj.health())
|
|
print(f"Speed: {i - pi}Hz")
|
|
pi = i
|
|
|