Gyroscope

Measure rotational speed around the X, Y, and Z axes in rad/s

Description

Measure rotational speed around the X, Y, and Z axes in rad/s.

The block outputs a 1–by-3 vector of single—precision values.

For any positive axis on the device, clockwise rotation outputs negative values, and counterclockwise rotation outputs positive values.

The following illustration shows the orientation of the positive X, Y, and Z axes for the Apple iOS device.

During simulations, this block outputs zeros. See Block Produces Zeros or Does Nothing in Simulation (Simulink).

Dialog Box

Sample time

Specify how often the block reads the sensor.

Smaller values require the processor to complete the same number of instructions in less time, which can cause task overruns.

Introduced in R2015a