cleanup touch_replay (#34305)

mathematics
pull/34307/head
Maxime Desroches 4 months ago committed by GitHub
parent e98741f5b2
commit 14123e94bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/debug/touch_replay.py

@ -30,7 +30,7 @@ if __name__ == '__main__':
elif event.type == 3 and event.code == 57 and event.value == -1: elif event.type == 3 and event.code == 57 and event.value == -1:
fingers[current_slot] = [-1, -1] fingers[current_slot] = [-1, -1]
elif event.type == 3 and event.code == 53: elif event.type == 3 and event.code == 53:
fingers[current_slot][1] = h - (h - event.value) fingers[current_slot][1] = event.value
if fingers[current_slot][0] != -1: if fingers[current_slot][0] != -1:
touch_points.append(fingers[current_slot].copy()) touch_points.append(fingers[current_slot].copy())
elif event.type == 3 and event.code == 54: elif event.type == 3 and event.code == 54:

Loading…
Cancel
Save