only move to self.target coordinates
This commit is contained in:
parent
f17f2c0a1f
commit
be3d4841cb
4
robot.py
4
robot.py
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue