mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-17 07:12:08 +08:00
4012d181e1
date: 2024-03-17T10:14:38 master commit: 7e9a909e0e57ecb31df4c87c5b9a06b1204fd034
15 lines
330 B
Python
15 lines
330 B
Python
from messaging_pyx import Context, SubSocket, PubSocket
|
|
|
|
if __name__ == "__main__":
|
|
c = Context()
|
|
pub_sock = PubSocket()
|
|
pub_sock.connect(c, "controlsState")
|
|
|
|
for i in range(int(1e10)):
|
|
print(i)
|
|
sub_sock = SubSocket()
|
|
sub_sock.connect(c, "controlsState")
|
|
|
|
pub_sock.send(b'a')
|
|
print(sub_sock.receive())
|