mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-10-01 03:43:42 +08:00
flake8 in pre-commit(#1583)
This commit is contained in:
@@ -79,7 +79,6 @@ def go(q):
|
||||
threading.Thread(target=health_function).start()
|
||||
threading.Thread(target=fake_driver_monitoring).start()
|
||||
|
||||
import carla # pylint: disable=import-error
|
||||
client = carla.Client("127.0.0.1", 2000)
|
||||
client.set_timeout(5.0)
|
||||
world = client.load_world('Town04')
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import time
|
||||
import sys
|
||||
import termios
|
||||
from termios import *
|
||||
import time
|
||||
from termios import (BRKINT, VMIN, CS8, CSIZE, ECHO, ICANON, ICRNL, IEXTEN,
|
||||
INPCK, ISIG, ISTRIP, IXON, PARENB, VTIME)
|
||||
|
||||
# Indexes for termios list.
|
||||
IFLAG = 0
|
||||
@@ -58,4 +59,3 @@ if __name__ == '__main__':
|
||||
p.start()
|
||||
|
||||
keyboard_poll_thread(q)
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ def wheel_poll_thread(q):
|
||||
|
||||
# Enable FF
|
||||
import evdev # pylint: disable=import-error
|
||||
from evdev import ecodes, InputDevice, ff # pylint: disable=import-error
|
||||
from evdev import ecodes, InputDevice # pylint: disable=import-error
|
||||
device = evdev.list_devices()[0]
|
||||
evtdev = InputDevice(device)
|
||||
val = 24000
|
||||
|
||||
Reference in New Issue
Block a user