Searched refs:gyro_events (Results 1 – 2 of 2) sorted by relevance
45 gyro_events = cam.get_sensor_events()['gyro']47 nevents = (len(gyro_events) / N) * N48 gyro_events = gyro_events[:nevents]49 times = numpy.array([(e['time'] - gyro_events[0]['time'])/1000000000.050 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])
188 def get_best_alignment_offset(cam_times, cam_rots, gyro_events): argument208 gyro_rots = get_gyro_rotations(gyro_events, times)267 def get_gyro_rotations(gyro_events, cam_times): argument280 all_times = numpy.array([e["time"] for e in gyro_events])281 all_rots = numpy.array([e["z"] for e in gyro_events])