readAcceleration
Read acceleration measured by the Accelerometer along x, y, and z axes
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
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.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2016b