Searched refs:gyro_events (Results 1 – 3 of 3) sorted by relevance
/cts/apps/CameraITS/tests/scene0/ |
D | test_gyro_bias.py | 55 gyro_events = cam.get_sensor_events()['gyro'] 57 nevents = (len(gyro_events) // N) * N 58 gyro_events = gyro_events[:nevents] 59 times = numpy.array([(e['time'] - gyro_events[0]['time'])*NSEC_TO_SEC 60 for e in gyro_events]) 61 xs = numpy.array([e['x'] for e in gyro_events]) 62 ys = numpy.array([e['y'] for e in gyro_events]) 63 zs = numpy.array([e['z'] for e in gyro_events])
|
/cts/apps/CameraITS/utils/ |
D | sensor_fusion_utils.py | 251 def get_gyro_rotations(gyro_events, cam_times): argument 264 gyro_times = np.array([e['time'] for e in gyro_events]) 265 all_gyro_rots = np.array([e['z'] for e in gyro_events]) 309 def get_best_alignment_offset(cam_times, cam_rots, gyro_events): argument 341 gyro_rots = get_gyro_rotations(gyro_events, shifted_cam_times) 457 gyro_events = [] 459 gyro_events.append({'time': t, 'z': gyro_rots[i]}) 461 return cam_times, cam_rots, gyro_events 471 cam_times, cam_rots, gyro_events = self._generate_test_waveforms( 473 gyro_rots = get_gyro_rotations(gyro_events, cam_times) [all …]
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_sensor_fusion.py | 193 def _plot_gyro_events(gyro_events, log_path): argument 204 nevents = (len(gyro_events) // _NUM_GYRO_PTS_TO_AVG) * _NUM_GYRO_PTS_TO_AVG 205 gyro_events = gyro_events[:nevents] 206 times = np.array([(e['time'] - gyro_events[0]['time']) * _NSEC_TO_SEC 207 for e in gyro_events]) 208 x = np.array([e['x'] for e in gyro_events]) 209 y = np.array([e['y'] for e in gyro_events]) 210 z = np.array([e['z'] for e in gyro_events])
|