189 if blink: |
189 if blink: |
190 return self.com.query( "P48%i" % carid ) |
190 return self.com.query( "P48%i" % carid ) |
191 else: |
191 else: |
192 return self.com.query( "P40%i" % carid ) |
192 return self.com.query( "P40%i" % carid ) |
193 |
193 |
|
194 def unlimitedfuel(self, carid, boolval): |
|
195 """ |
|
196 Set unlimited fuel on/off for a car |
|
197 """ |
|
198 if (carid < 0) or (carid > 5): |
|
199 return "ERR - invalid carid" |
|
200 value = 0 |
|
201 if boolval: value = 1 |
|
202 return self.com.query( "U%i%i" % (carid, value) ) |
|
203 |
194 def speedlimit(self, carid, value): |
204 def speedlimit(self, carid, value): |
195 """ |
205 """ |
196 Set the maximum controller speed for a car |
206 Set the maximum controller speed for a car |
197 Attention: this is software limited, this does not affect car acceleration! |
207 Attention: this is software limited, this does not affect car acceleration! |
198 """ |
208 """ |