Skip to content

Commit 4bc73b0

Browse files
authored
Update imu.rst
1 parent aeec778 commit 4bc73b0

File tree

1 file changed

+4
-4
lines changed
  • docs/source/components/nodes

1 file changed

+4
-4
lines changed

docs/source/components/nodes/imu.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Usage
5656
pipeline = dai.Pipeline()
5757
imu = pipeline.create(dai.node.IMU)
5858

59-
# enable ACCELEROMETER and MAGNETOMETER_CALIBRATED at 100 hz rate
60-
imu.enableIMUSensor([dai.IMUSensor.ACCELEROMETER, dai.IMUSensor.MAGNETOMETER_CALIBRATED], 100)
59+
# enable RAW_ACCELEROMETER and RAW_GYROSCOPE at 100 hz rate
60+
imu.enableIMUSensor([dai.IMUSensor.RAW_ACCELEROMETER, dai.IMUSensor.RAW_GYROSCOPE], 100)
6161
# above this threshold packets will be sent in batch of X, if the host is not blocked and USB bandwidth is available
6262
imu.setBatchReportThreshold(1)
6363
# maximum number of IMU packets in a batch, if it's reached device will block sending until host can receive it
@@ -70,8 +70,8 @@ Usage
7070
dai::Pipeline pipeline;
7171
auto imu = pipeline.create<dai::node::IMU>();
7272

73-
// enable ACCELEROMETER and MAGNETOMETER_CALIBRATED at 100 hz rate
74-
imu->enableIMUSensor({dai::IMUSensor::ACCELEROMETER, dai::IMUSensor::MAGNETOMETER_CALIBRATED}, 100);
73+
// enable RAW_ACCELEROMETER and RAW_GYROSCOPE at 100 hz rate
74+
imu->enableIMUSensor({dai::IMUSensor::RAW_ACCELEROMETER, dai::IMUSensor::RAW_GYROSCOPE}, 100);
7575
// above this threshold packets will be sent in batch of X, if the host is not blocked and USB bandwidth is available
7676
imu->setBatchReportThreshold(1);
7777
// maximum number of IMU packets in a batch, if it's reached device will block sending until host can receive it

0 commit comments

Comments
 (0)