Skip to content

Commit

Permalink
add prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Jul 8, 2024
1 parent 3d4398f commit 5e302f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unit-tests/live/d400/test-mipi-motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
accel_frame_count = 0

def frame_callback( f ):
log.out("frame_callback called with", f)
global gyro_frame_count,accel_frame_count
stream_type = f.get_profile().stream_type()
if stream_type == rs.stream.gyro:
Expand All @@ -27,6 +28,8 @@ def frame_callback( f ):
sensor = dev.first_motion_sensor()
motion_profile_accel = next(p for p in sensor.profiles if p.stream_type() == rs.stream.accel and p.fps() == 100)
motion_profile_gyro = next(p for p in sensor.profiles if p.stream_type() == rs.stream.gyro and p.fps()==100)
log.out("motion_profile_accel", motion_profile_accel)
log.out("motion_profile_gyro", motion_profile_gyro)
sensor.open( [motion_profile_accel, motion_profile_gyro] )
sensor.start( frame_callback )
time.sleep(seconds_to_count_frames) # Time to count frames
Expand Down

0 comments on commit 5e302f7

Please sign in to comment.