Skip to content

enum SF::Sensor::Type #

Sensor type

Members#

Accelerometer = 0 #

Measures the raw acceleration (m/s^2)

Gyroscope = 1 #

Measures the raw rotation rates (degrees/s)

Magnetometer = 2 #

Measures the ambient magnetic field (micro-teslas)

Gravity = 3 #

Measures the direction and intensity of gravity, independent of device acceleration (m/s^2)

UserAcceleration = 4 #

Measures the direction and intensity of device acceleration, independent of the gravity (m/s^2)

Orientation = 5 #

Measures the absolute 3D orientation (degrees)

Count = 6 #

Keep last -- the total number of sensor types

Methods#

#accelerometer? #

View source

#count? #

View source

#gravity? #

View source

#gyroscope? #

View source

#magnetometer? #

View source

#orientation? #

View source

#user_acceleration? #

View source