From fb6c27271ce14b63f7c3b8b26559819a69dfd2c5 Mon Sep 17 00:00:00 2001 From: Adam Saudagar Date: Mon, 7 Dec 2020 22:01:34 +0530 Subject: [PATCH] reduced control modes --- fishy/engine/fullautofisher/controls.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fishy/engine/fullautofisher/controls.py b/fishy/engine/fullautofisher/controls.py index 92c0bed..7708a4b 100644 --- a/fishy/engine/fullautofisher/controls.py +++ b/fishy/engine/fullautofisher/controls.py @@ -25,14 +25,8 @@ def get_controls(engine: FullAuto): ("TEST1", { Key.RIGHT: (engine.test.print_coods, "print coordinates"), Key.UP: (engine.test.look_for_hole, "look for hole up down"), - Key.LEFT: (None, ""), - Key.DOWN: (lambda: engine.controls.select_mode("TEST2"), "show next") - }), - ("TEST2", { - Key.RIGHT: (engine.test.set_target, "set target"), - Key.UP: (engine.test.move_to_target, "move to target"), - Key.LEFT: (engine.test.rotate_to_target, "rotate to target"), - Key.DOWN: (lambda: engine.controls.select_mode("TEST1"), "show previous") + Key.LEFT: (engine.test.set_target, "set target"), + Key.DOWN: (engine.test.move_to_target, "move to target") }) ]