From 75dc12eb495baafbb4debdeca12ff1228a19469d Mon Sep 17 00:00:00 2001 From: gdamms Date: Wed, 23 Mar 2022 20:16:31 +0100 Subject: [PATCH] fix: pret a manger --- src/garage.py | 13 +++++-------- src/main.py | 4 ++-- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/garage.py b/src/garage.py index 40264f2..f87b77b 100644 --- a/src/garage.py +++ b/src/garage.py @@ -26,18 +26,15 @@ SECONDARY_COLOR_SLIDER = (380, 380 + TEAM_OFFSET) ITEM_X = (200, 450, 700) ITEM_Y = (300, 580, 860) -NB_STICKERS = (2,) -NB_WHEELS = 2 -NB_HATS = 2 +NB_STICKERS = (3, 3) +NB_WHEELS = 23 +NB_HATS = 20 NB_TEAMS = 2 DELAY = 0.1 -NB_PRIMARY_COLORS = 2 -NB_SECONDARY_COLORS = 2 - -NB_HORIZONTAL_ROTATIONS = 3 -NB_VERTICAL_ROTATIONS = 3 +NB_PRIMARY_COLORS = 5 +NB_SECONDARY_COLORS = 5 old_model = None diff --git a/src/main.py b/src/main.py index 1ae3333..fa2ca84 100644 --- a/src/main.py +++ b/src/main.py @@ -31,13 +31,13 @@ if __name__ == "__main__": database = connect_to_database("dataset.db") loadouts = generate_loadouts() - NB_ROTATIONS = 3 + NB_ROTATIONS = 20 while detect_focus(device): for (i, loadout) in enumerate(loadouts): ((model, sticker), wheel, hat, team, primary_color, secondary_color) = loadout - logging.debug(f"loadout {i}: {(wheel, hat, team, primary_color, secondary_color)}") + logging.debug(f"loadout {i}: {((model, sticker), wheel, hat, team, primary_color, secondary_color)}") newCar(model, sticker, wheel, hat, team, primary_color, secondary_color) sleep(0.5)