IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QGyroscopeReading Class

The QGyroscopeReading class represents one reading from the gyroscope sensor.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QGyroscopeReading Class

  • Header: QGyroscopeReading

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Sensors)

    target_link_libraries(mytarget PRIVATE Qt6::Sensors)

  • qmake: QT += sensors

  • Inherits: QSensorReading

  • Group: QGyroscopeReading is part of sensors_reading

Detailed Description

 

QGyroscopeReading Units

The reading contains 3 values, measured in degrees per second that define the movement of the device around the x, y and z axes. Unlike QRotationReading, the values represent the current angular velocity rather than a fixed rotation. The measurements are in degrees per second.

Image non disponible

Property Documentation

 

[read-only] x : const qreal

This property holds the angular velocity around the x axis.

Measured as degrees per second.

Access functions:

  • x() const

See Also

[read-only] y : const qreal

This property holds the angular velocity around the y axis.

Measured as degrees per second.

Access functions:

  • y() const

See Also

[read-only] z : const qreal

This property holds the angular velocity around the z axis.

Measured as degrees per second.

Access functions:

  • z() const

See Also

Member Function Documentation

 

void QGyroscopeReading::setX(qreal x)

Sets the angular velocity around the x axis to x.

See Also

See also x()

void QGyroscopeReading::setY(qreal y)

Sets the angular velocity around the y axis to y.

See Also

See also y()

void QGyroscopeReading::setZ(qreal z)

Sets the angular velocity around the z axis to z.

See Also

See also z()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+