Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions examples/IMU/imu_gyroscope_accelerometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

xlinkOut.setStreamName("imu")

# enable ACCELEROMETER_RAW and GYROSCOPE_RAW at 500 hz rate
imu.enableIMUSensor([dai.IMUSensor.ACCELEROMETER_RAW, dai.IMUSensor.GYROSCOPE_RAW], 500)
# enable ACCELEROMETER_RAW at 500 hz rate
imu.enableIMUSensor(dai.IMUSensor.ACCELEROMETER_RAW, 500)
# enable GYROSCOPE_RAW at 400 hz rate
imu.enableIMUSensor(dai.IMUSensor.GYROSCOPE_RAW, 400)
# it's recommended to set both setBatchReportThreshold and setMaxBatchReports to 20 when integrating in a pipeline with a lot of input/output connections
# above this threshold packets will be sent in batch of X, if the host is not blocked and USB bandwidth is available
imu.setBatchReportThreshold(1)
# maximum number of IMU packets in a batch, if it's reached device will block sending until host can receive it
Expand Down
1 change: 1 addition & 0 deletions src/DatatypeBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ void DatatypeBindings::bind(pybind11::module& m, void* pCallstack){
.def_readwrite("sequence", &IMUReport::sequence)
.def_readwrite("accuracy", &IMUReport::accuracy)
.def_readwrite("timestamp", &IMUReport::timestamp)
.def_readwrite("tsDevice", &IMUReport::tsDevice)
;


Expand Down