Home
last modified time | relevance | path

Searched refs:gyro_events (Results 1 – 2 of 2) sorted by relevance

/cts/apps/CameraITS/tests/scene0/
Dtest_gyro_bias.py45 gyro_events = cam.get_sensor_events()['gyro']
47 nevents = (len(gyro_events) / N) * N
48 gyro_events = gyro_events[:nevents]
49 times = numpy.array([(e['time'] - gyro_events[0]['time'])/1000000000.0
50 for e in gyro_events])
51 xs = numpy.array([e['x'] for e in gyro_events])
52 ys = numpy.array([e['y'] for e in gyro_events])
53 zs = numpy.array([e['z'] for e in gyro_events])
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_sensor_fusion.py188 def get_best_alignment_offset(cam_times, cam_rots, gyro_events): argument
208 gyro_rots = get_gyro_rotations(gyro_events, times)
267 def get_gyro_rotations(gyro_events, cam_times): argument
280 all_times = numpy.array([e["time"] for e in gyro_events])
281 all_rots = numpy.array([e["z"] for e in gyro_events])