Skip to content

Commit

Permalink
Fixes overflow that created zero-norm quats
Browse files Browse the repository at this point in the history
  • Loading branch information
domstoppable committed Sep 16, 2024
1 parent 0f3df3d commit c55f5b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pupil_labs/neon_recording/stream/imu/imu_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def __init__(self, recording):
packet.rotVecData.w,
]
)

euler = rotation.as_euler(seq="XZY", degrees=True)

imu_data.append((
Expand All @@ -116,7 +117,7 @@ def _parse_neon_imu_raw_packets(buffer):
break

index += 2
packet_size = nums[0]
packet_size = int(nums[0])
packet_sizes.append(packet_size)
packet_bytes = buffer[index: index + packet_size]
index += packet_size
Expand Down

0 comments on commit c55f5b9

Please sign in to comment.