fixed power button

This commit is contained in:
(MakerLab) Laptop 2 2024-05-08 20:05:38 +02:00
parent d7dd932067
commit e4847d6cad

View file

@ -57,10 +57,11 @@ while True:
shoot.run_angle(-speed, angle) shoot.run_angle(-speed, angle)
# move back # move back
shoot.run_angle(speed, angle) shoot.run_angle(speed, angle)
else:
db.settings(s_speed*2, s_accel, t_rate, t_accel*2) # run fast
speed=-1000 db.settings(s_speed*2, s_accel, t_rate, t_accel*2)
angle=0 speed=-1000
angle=0
if Button.LEFT_PLUS in pressed and Button.RIGHT_MINUS in pressed: if Button.LEFT_PLUS in pressed and Button.RIGHT_MINUS in pressed:
db.turn(-20,wait=False,) db.turn(-20,wait=False,)