readAcceleration
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Description
[
returns one sample of the acceleration data on x, y, and z axes read from the sensor
in units of m/s2 along with the
accelReadings,timestamp] = readAcceleration(sensorobj)timestamp. Timestamp is optional.
Note
The readAcceleration function is available for the
LSM6DS3, LSM6DS3H,
LSM6DSL, LSM6DSM,
LSM6DSR, LSM6DSO,
MPU6050, MPU9250,
LSM9DS1, LSM303C,
ICM20948, ADXL345, and
LIS3DH sensors.
Examples
Input Arguments
Output Arguments
More About
Extended Capabilities
Version History
Introduced in R2021a