+ def command(self, what, param = 0):
+ if self.ready:
+ cmd = eDVBDiseqcCommand()
+ if what == "moveWest":
+ string = '\xe1\x31\x69' + chr(param)
+ elif what == "moveEast":
+ string = '\xe1\x31\x68' + chr(param)
+ elif what == "moveTo":
+ string = '\xe1\x31\x6b' + chr(param)
+ elif what == "store":
+ string = '\xe1\x31\x6a' + chr(param)
+ elif what == "limitOff":
+ string = '\xe1\x31\x63'
+ elif what == "limitEast":
+ string = '\xe1\x31\x66'
+ elif what == "limitWest":
+ string = '\xe1\x31\x67'
+ else:
+ string = '\xe0\x31\x60' #positioner stop
+ print "diseqc command:",
+ for x in string:
+ print hex(ord(x)),
+ print
+
+ cmd.setCommandString(string)
+ self.frontend.sendDiseqc(cmd)
+