From e4847d6cad117270bf3b8bb76eef83cb25f71db3 Mon Sep 17 00:00:00 2001 From: "(MakerLab) Laptop 2" Date: Wed, 8 May 2024 20:05:38 +0200 Subject: [PATCH] fixed power button --- soccer_bot.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/soccer_bot.py b/soccer_bot.py index 4e083d9..626a907 100644 --- a/soccer_bot.py +++ b/soccer_bot.py @@ -57,10 +57,11 @@ while True: shoot.run_angle(-speed, angle) # move back shoot.run_angle(speed, angle) - else: - db.settings(s_speed*2, s_accel, t_rate, t_accel*2) - speed=-1000 - angle=0 + + # run fast + db.settings(s_speed*2, s_accel, t_rate, t_accel*2) + speed=-1000 + angle=0 if Button.LEFT_PLUS in pressed and Button.RIGHT_MINUS in pressed: db.turn(-20,wait=False,)