import frame
from uart import Uart


class Hardware():
    def __init__(self):
        self.uart = Uart()

        self.uart.start()

    def setMotors(self, payload):
        print (frame.motors(payload))
        self.uart.send(frame.motors(payload))

    def setManipulator(self, payload):
        print (frame.manipulator(payload))
        self.uart.send(frame.manipulator(payload))

    def setGripper(self, payload):
        print (frame.gripper(payload))
        self.uart.send(frame.gripper(payload))

    def setCameraPosition(self, payload):
        pass

    def setCameraParams(self, payload):
        pass

    def getBattery(self):
        self.uart.send(frame.battery())
        status = self.uart.serial.read(1)
        print(status)
        print(int(status))
        battery_status = int.from_bytes(status, byteorder='big', signed=False)
        print(battery_status)
        return battery_status

    def getTemperature(self, payload):
        pass

@@ -724,57 +724,8 @@
 (1)%0A
-        print(status)%0A        print(int(status))%0A
     

remove unwanted prints