mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
Make pylint more strict (#1626)
* make pylint more strict * cleanup in progress * done cleaning up * no opendbc
This commit is contained in:
+3
-5
@@ -97,11 +97,9 @@ def go(q):
|
||||
world.set_weather(weather)
|
||||
|
||||
blueprint_library = world.get_blueprint_library()
|
||||
"""
|
||||
for blueprint in blueprint_library.filter('sensor.*'):
|
||||
print(blueprint.id)
|
||||
exit(0)
|
||||
"""
|
||||
# for blueprint in blueprint_library.filter('sensor.*'):
|
||||
# print(blueprint.id)
|
||||
# exit(0)
|
||||
|
||||
world_map = world.get_map()
|
||||
vehicle_bp = random.choice(blueprint_library.filter('vehicle.tesla.*'))
|
||||
|
||||
@@ -143,7 +143,7 @@ def wheel_poll_thread(q):
|
||||
|
||||
while True:
|
||||
evbuf = jsdev.read(8)
|
||||
time, value, mtype, number = struct.unpack('IhBB', evbuf)
|
||||
_, value, mtype, number = struct.unpack('IhBB', evbuf)
|
||||
# print(mtype, number, value)
|
||||
if mtype & 0x02: # wheel & paddles
|
||||
axis = axis_map[number]
|
||||
|
||||
Reference in New Issue
Block a user