mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
@@ -83,4 +83,8 @@ class World(ABC):
|
||||
|
||||
@abstractmethod
|
||||
def close(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def reset(self):
|
||||
pass
|
||||
@@ -55,6 +55,8 @@ def keyboard_poll_thread(q: 'Queue[str]'):
|
||||
q.put("steer_%f" % -0.15)
|
||||
elif c == 'i':
|
||||
q.put("ignition")
|
||||
elif c == 'r':
|
||||
q.put("reset")
|
||||
elif c == 'q':
|
||||
q.put("quit")
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user