diff --git a/depthai-core b/depthai-core index e03be4c7b..3a2961de7 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit e03be4c7b43307b148fd1e4da4306e7166ded2a4 +Subproject commit 3a2961de709faf44313d7af4f62314ad063acdec diff --git a/examples/IMU/imu_gyroscope_accelerometer.py b/examples/IMU/imu_gyroscope_accelerometer.py index eba03cc7c..097091eaa 100755 --- a/examples/IMU/imu_gyroscope_accelerometer.py +++ b/examples/IMU/imu_gyroscope_accelerometer.py @@ -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 diff --git a/src/DatatypeBindings.cpp b/src/DatatypeBindings.cpp index bd78fd400..61cb3e8f0 100644 --- a/src/DatatypeBindings.cpp +++ b/src/DatatypeBindings.cpp @@ -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) ;