slotUI/freeslot.py

changeset 116
c2fc650cc48f
parent 100
039ab094f79b
child 139
7127e7082ee0
equal deleted inserted replaced
115:bb150048d329 116:c2fc650cc48f
159 # transform value 10..15 to A..F 159 # transform value 10..15 to A..F
160 if (value>9): 160 if (value>9):
161 value = chr(ord("A") + (value-10)) 161 value = chr(ord("A") + (value-10))
162 return self.com.query( "S%i%s" % (carid, value) ) 162 return self.com.query( "S%i%s" % (carid, value) )
163 163
164 def fueldivisor(self, value):
165 """
166 Set the minimzm controller speed for a car
167 """
168 if (value<0) or (value>255):
169 return "ERR - invalid value"
170 return self.com.query( "F:%s" % (value) )
171
164 172
165 def setmode(self, mode): 173 def setmode(self, mode):
166 """ 174 """
167 Switch the Blackbox mode 175 Switch the Blackbox mode
168 Valid modes are: idle, prepare, race 176 Valid modes are: idle, prepare, race

mercurial