IMU
The IMU service allows applications to configure and receive the data from the onboard inertial sensors, that is accelerometers and gyroscopes (gyros).
Accelerometer and gyroscope each have a separate set of IPCs associated with them, however samples are reported separately and might not be fully synchronized between them. Any application using both accelerometer and gyroscope must take care to correlate the two using the timestamps in each sample.
Supported configurations
The supported configuration parameters for the accelerometer and gyroscope depends on each board type.
For the ACU6 Pro OH board the following are the allowed configurations
Parameter |
Accelerometer |
Gyroscope |
---|---|---|
Sample rate (Hz) |
|
|
Samples per buffer |
1-16 |
1-16 |
Note
Some combinations of settings, such as high sample rates together with low number of samples per buffer might result in increased system load and possibly that samples are lost.
Accelerometer wakeup
The accelerometer side of the IMU can be used to wake the system from both Standby and Sleep modes on detected acceleration. For the wakeup to be available the accelerometer must be requested.
Note
The configuration is runtime only, meaning that it must be configured after each entry to the Sleep or Hibernate power mode.