def setRotate(self, level):
        cmd = self.setRotateCommand(level)
        if not cmd:
            return
        self.writeCommand(cmd)