enum SF::Sensor::Type

Overview

Sensor type

Defined in:

window/obj.cr

Enum 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

Instance Method Summary

Instance Method Detail

def accelerometer? #

[View source]
def count? #

[View source]
def gravity? #

[View source]
def gyroscope? #

[View source]
def magnetometer? #

[View source]
def orientation? #

[View source]
def user_acceleration? #

[View source]