1
0
Fork 0

only move to self.target coordinates

This commit is contained in:
Kevin Matz 2019-07-30 11:05:45 -04:00
parent f17f2c0a1f
commit be3d4841cb
1 changed files with 1 additions and 3 deletions

View File

@ -32,9 +32,7 @@ class Robot:
self.target = []
self.buffer = bytes()
def move(self, coords=None):
if coords is not None:
self.target = coords
def move(self):
hexval = [hex(dec).lstrip("0x").rstrip("L") for dec in self.target]
str = '{'+','.join(hexval)+'}'
str = str.lower().encode()