diff --git a/README.md b/README.md index 08bc9ca..1dc9527 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Easily create a network socket between the SSL Vision and your VSSS or SSL softw ## Requirements -- protobuf==3.6.1 +- protobuf==3.20.3 ## Installation Use the code below to install the package from PyPI: diff --git a/pySSLVision/VisionComm.py b/pySSLVision/VisionComm.py index afac061..0953b97 100644 --- a/pySSLVision/VisionComm.py +++ b/pySSLVision/VisionComm.py @@ -36,6 +36,8 @@ def __init__(self, config_file=None): self.callback = None + self.kill_recieved = False + def assign_vision(self, callback): self.callback = callback @@ -54,7 +56,7 @@ def run(self): self._wait_to_connect() print("Vision completed!") - while True: + while not self.kill_recieved: env = messages_robocup_ssl_wrapper_pb2.SSL_WrapperPacket() data = self.vision_sock.recv(1024) self.set_fps() diff --git a/requirements.txt b/requirements.txt index 154300f..048818e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -protobuf==3.6.1 \ No newline at end of file +protobuf == 3.20.3 \ No newline at end of file diff --git a/setup.py b/setup.py index c555ab9..4d14c0d 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ setup( name="pySSLVision", packages=find_packages() + find_packages(where="./protocols"), - version="1.0.1", + version="2.0.0", description="Creates a network socket to communicate with the SSL Vision", long_description_content_type='text/markdown', long_description=open('README.md').read(), author="Project-Neon", author_email="projectneon@gmail.com", license="GNU", - install_requires=['protobuf==3.6.1'], + install_requires=['protobuf==3.20.3'], )