mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-23 18:22:13 +08:00
07aa8b1bf3
old-commit-hash: 94053536b4
16 lines
303 B
Python
Executable File
16 lines
303 B
Python
Executable File
#!/usr/bin/env python
|
|
from cereal import car
|
|
import time
|
|
|
|
|
|
class RadarInterface(object):
|
|
def __init__(self, CP):
|
|
# radar
|
|
self.pts = {}
|
|
self.delay = 0.1
|
|
|
|
def update(self, can_strings):
|
|
ret = car.RadarData.new_message()
|
|
time.sleep(0.05) # radard runs on RI updates
|
|
return ret
|