SKGyroscopeData Class Reference

Inherits from SKSensorData : NSObject
Declared in SKGyroscopeData.h

Overview

An instance of SKGyroscopeData encapsulates measurements related to the Gyroscope sensor.

– initWithSensorType:withTimestamp:

Returns an SKSensorData object, initialized with the given SKSensorType and SKSensorTimestamp.

- (instancetype)initWithSensorType:(SKSensorType)sensorType withTimestamp:(SKSensorTimestamp *)timestamp

Parameters

sensorType

The type of the sensor that produced this data object.

timestamp

The time were this data log was captured.

Return Value

A new SKSensorData object.

Declared In

SKSensorData.h

– initWithGyroData:

Returns an SKGyroscopeData object, initialized with a CMRotationRate structure.

- (instancetype)initWithGyroData:(CMGyroData *)gyroData

Parameters

gyroData

A structure that contains 3-axis rotation rate data.

Return Value

An SKGyroscopeData object

Declared In

SKGyroscopeData.h

  rotationRate

A structure that contains 3-axis rotation rate data.

@property (nonatomic, readonly) CMRotationRate rotationRate

Declared In

SKGyroscopeData.h

+ csvHeader

A string with a CSV formatted header that describes the data of the Gyroscope sensor. This method is useful in combination with the csvString instance method of an SKSensorData object.

+ (NSString *)csvHeader

Return Value

A string with a CSV header.

Declared In

SKGyroscopeData.h