Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/test/vr/perf/latency/robot_arm.py

Issue 2904583003: Support multiple URLs for latency testing (Closed)
Patch Set: Fix adb startup message appearing in device name Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import serial 5 import serial
6 import time 6 import time
7 7
8 8
9 class RobotArm(): 9 class RobotArm():
10 """Handles the serial communication with the servos/arm used for movement.""" 10 """Handles the serial communication with the servos/arm used for movement."""
(...skipping 26 matching lines...) Expand all
37 37
38 def StartMotophoMovement(self): 38 def StartMotophoMovement(self):
39 if not self._connection: 39 if not self._connection:
40 return 40 return
41 self._connection.write('9\n') 41 self._connection.write('9\n')
42 42
43 def StopAllMovement(self): 43 def StopAllMovement(self):
44 if not self._connection: 44 if not self._connection:
45 return 45 return
46 self._connection.write('0\n') 46 self._connection.write('0\n')
47 # The manual usage instructions are printed over the serial connection
48 # every time we send a command - long test runs can result in the buffer
49 # filling up and causing the arm to hang, so periodically clear the buffer.
50 self._connection.flushInput()
OLDNEW
« no previous file with comments | « chrome/test/vr/perf/latency/android_webvr_latency_test.py ('k') | chrome/test/vr/perf/latency/run_latency_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698