Read acceleration measured by the Accelerometer along x, y, and z axes
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 a 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 a 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.
clearLEDMatrix
| displayImage
| displayMessage
| raspi
| readAcceleration
| readAngularVelocity
| readHumidity
| readJoystick
| readMagneticField
| readPressure
| readTemperature
| sensehat
| writePixel