fixed power button
This commit is contained in:
parent
d7dd932067
commit
e4847d6cad
1 changed files with 5 additions and 4 deletions
|
@ -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,)
|
||||||
|
|
Loading…
Reference in a new issue