Gyroscope
Measure rotational speed around X, Y, and Z axes in rad/s
Add-On Required: This feature requires the Simulink Support Package for Android Devices add-on.
Libraries:
Simulink Support Package for Android Devices /
Sensors
Description
Use the Gyroscope block measure rotational speed around X, Y, and Z axes of the device. This data is acquired from the gyroscope sensor of the device.
For any positive axis on the device, clockwise rotation outputs negative values, and counterclockwise rotation outputs positive values. For example, if you place the device face up on a table and spin it clockwise, the block outputs negative values for the Z-axis.
The following illustration shows the orientation of the positive X, Y, and Z axes for a typical Android® mobile phone.
The following illustration shows the orientation of the positive X, Y, and Z axes for a typical Android tablet.
Note
During simulation with no hardware connected, this block does nothing. For more information, see Block Produces Zeros or Does Nothing in Simulation.
Ports
Output
Parameters
Version History
Introduced in R2014a