--- a/slotUI/freeslot.py Thu Dec 08 17:16:06 2011 +0100 +++ b/slotUI/freeslot.py Thu Dec 08 17:22:14 2011 +0100 @@ -134,6 +134,20 @@ value = chr(ord("A") + (value-10)) return self.com.query( "L%i%s" % (carid, value) ) + def speedminimum(self, carid, value): + """ + Set the minimzm controller speed for a car + """ + if (carid < 0) or (carid > 5): + return "ERR - invalid carid" + if (value<0) or (value>15): + return "ERR - invalid value" + # transform value 10..15 to A..F + if (value>9): + value = chr(ord("A") + (value-10)) + return self.com.query( "S%i%s" % (carid, value) ) + + def setmode(self, mode): """ Switch the Blackbox mode