Commit 77d4837d authored by Oldřich Pecák's avatar Oldřich Pecák
Browse files

fix measurement display

parent 0c331a67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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):
+5 −0
Original line number Diff line number Diff line
@@ -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()