readAcceleration
Read acceleration measured by the Accelerometer along x, y, and z axes
Syntax
Description
returns the acceleration measured by the Accelerometer along the x, y, and the z
axis.Acceleration = readAcceleration(mysh)
The unit of measurement for the Accelerometer data is meter per second square (m/s2)
[ returns the acceleration measured by
the Accelerometer along the x, y, and the z axis with timestamp.Acceleration,Ts]=
readAcceleration(mysh)
returns the acceleration measured by the Accelerometer along the x, y, and the z axis. The
‘raw’ argument is to specify that the output should be uncalibrated raw data.accelerationRaw = readAcceleration(mysh,'raw')
[ returns the
acceleration measured by the Accelerometer along the x, y, and the z axis with timestamp.
The ‘raw’ argument is to specify that the output should be uncalibrated raw data.accelerationRaw,Ts]=
readAcceleration(mysh,'raw')
The full scale range for the Accelerometer is +/- 2g
Sense HAT IMU sensor axis information is shown below.

Note
To generate C/C++ code for this function, you must have an Embedded Coder® license.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2016b