SMGyroscopeSensor Class Reference
| Inherits from | SMSensor : NSObject |
|---|---|
| Declared in | SMGyroscopeSensor.h SMGyroscopeSensor.m |
Other Methods
– initWithSenseCallback:timeInterval:
Initialises the gyroscope sensor with specified callback and repeat time interval
- (id)initWithSenseCallback:(SenseCallback)callback timeInterval:(NSTimeInterval)secsParameters
callback |
callback for data |
|---|---|
secs |
seconds between sensing |
Return Value
Gyroscope sensor
Discussion
Initialises the gyroscope sensor with specified callback and repeat time interval
Declared In
SMGyroscopeSensor.h
Other Methods
+ isAvailable
Checks whether the sensor is available at runtime
+ (BOOL)isAvailableReturn Value
Sensor available
Discussion
Checks whether the sensor is available at runtime
Declared In
SMSensor.h
– initWithSenseCallback:
Initialises an SMSensor with specified callback.
- (id)initWithSenseCallback:(SenseCallback)callbackParameters
callback |
Callback to send the data to |
|---|
Return Value
SMSensor Instance
Discussion
Initialises an SMSensor with specified callback.
Note: This class can not be instantiated from outside this library. Use the relevant subclasses for a particular sensor
Declared In
SMSensor.h
Extension Methods
motionManager
Motion manager to get gyroscope information from
@property (nonatomic, strong) CMMotionManager *motionManagerDiscussion
Motion manager to get gyroscope information from
Declared In
SMGyroscopeSensor.m
currentData
Latest data received from the sensor
@property (atomic, strong) SM3DMotionSensorData *currentDataDiscussion
Latest data received from the sensor
Declared In
SMGyroscopeSensor.m