Loading cube_comm.py +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ class CubeComm(): return (msg.x, msg.y, msg.z) if following == protocols_pb2.MEASUREMENT: msg = protocols_pb2.Measurement_msg().FromString(bytearray(data)) return [(msg.position.x, msg.position.y, msg.position.z), (msg.x, msg.y, msg.z, msg.t)] return [(msg.position.x, msg.position.y, msg.position.z), (msg.x, msg.y, msg.z)] return [] def simple_command(self, command): Loading cube_console.py +5 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,11 @@ class CubeConsole(cmd.Cmd): """exit the console""" return True def do_EOF(self, args): """exit the console""" print("EOF") return True def do_move(self, args): """move to coord\n syntax: move X Y Z""" split_args = args.split() Loading Loading
cube_comm.py +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ class CubeComm(): return (msg.x, msg.y, msg.z) if following == protocols_pb2.MEASUREMENT: msg = protocols_pb2.Measurement_msg().FromString(bytearray(data)) return [(msg.position.x, msg.position.y, msg.position.z), (msg.x, msg.y, msg.z, msg.t)] return [(msg.position.x, msg.position.y, msg.position.z), (msg.x, msg.y, msg.z)] return [] def simple_command(self, command): Loading
cube_console.py +5 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,11 @@ class CubeConsole(cmd.Cmd): """exit the console""" return True def do_EOF(self, args): """exit the console""" print("EOF") return True def do_move(self, args): """move to coord\n syntax: move X Y Z""" split_args = args.split() Loading