feat: updated ignore and removed unused code

This commit is contained in:
2020-10-29 21:47:20 +01:00
parent 655787f58f
commit 2aebb5c869
3 changed files with 4 additions and 4 deletions

1
.gitignore vendored
View File

@@ -221,3 +221,4 @@ yarn-error.log
# custom
.idea/
sounds/

View File

@@ -4,7 +4,6 @@ from redis import Redis
from control.camera import Camera
INTERVAL_TICK = 0.0125 # 20/s
INTERVAL_IMAGE = 0.05 # 20/s

View File

@@ -50,12 +50,10 @@ class EventListener(Thread):
scheduler = sched.scheduler()
audio = AudioSystem(scheduler, 'sounds.json')
walle = WallE()
walle.setup()
audio = AudioSystem(scheduler, 'sounds.json')
audio.queue_sound('walle.boot')
def walle_tick():
scheduler.enter(INTERVAL_TICK, 1, walle_tick)
@@ -64,6 +62,8 @@ def walle_tick():
scheduler.enter(INTERVAL_TICK, 1, walle_tick)
audio.queue_sound('walle.boot')
if __name__ == '__main__':
redisdb = Redis()
event_listener = EventListener()