File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/source/components/nodes Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments