blah
This commit is contained in:
parent
321b370b2d
commit
48fd906e49
1 changed files with 9 additions and 9 deletions
|
|
@ -64,7 +64,7 @@ c = []
|
||||||
def controlloop(last_start, next_action):
|
def controlloop(last_start, next_action):
|
||||||
now = time.ticks_us()
|
now = time.ticks_us()
|
||||||
|
|
||||||
#print('CTRL: ', last_start, next_action)
|
print('CTRL: ', last_start, next_action)
|
||||||
if time.ticks_diff(now, time.ticks_add(last_start, 100000)) < 0:
|
if time.ticks_diff(now, time.ticks_add(last_start, 100000)) < 0:
|
||||||
print(' DEADTIME -> ignore')
|
print(' DEADTIME -> ignore')
|
||||||
return last_start
|
return last_start
|
||||||
|
|
@ -146,9 +146,9 @@ def mainloop(l):
|
||||||
elif a == b'w':
|
elif a == b'w':
|
||||||
next_action = (1, 1)
|
next_action = (1, 1)
|
||||||
elif a == b'a':
|
elif a == b'a':
|
||||||
next_action = (0, 1)
|
next_action = (-1, 1)
|
||||||
elif a == b'd':
|
elif a == b'd':
|
||||||
next_action = (1, 0)
|
next_action = (1, -1)
|
||||||
elif a == b's':
|
elif a == b's':
|
||||||
next_action = (-1, -1)
|
next_action = (-1, -1)
|
||||||
elif a in [b'\n', b'\r']:
|
elif a in [b'\n', b'\r']:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue