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 |