Searched refs:gyro_events (Results 1 – 2 of 2) sorted by relevance
47 gyro_events = cam.get_sensor_events()["gyro"]49 nevents = (len(gyro_events) / N) * N50 gyro_events = gyro_events[:nevents]51 times = numpy.array([(e["time"] - gyro_events[0]["time"])/1000000000.052 for e in gyro_events])53 xs = numpy.array([e["x"] for e in gyro_events])54 ys = numpy.array([e["y"] for e in gyro_events])55 zs = numpy.array([e["z"] for e in gyro_events])
123 def get_best_alignment_offset(cam_times, cam_rots, gyro_events): argument143 gyro_rots = get_gyro_rotations(gyro_events, times)195 def get_gyro_rotations(gyro_events, cam_times): argument209 all_times = numpy.array([e["time"] for e in gyro_events])210 all_rots = numpy.array([e["z"] for e in gyro_events])