ScannerApp-Swift Documentation

Class Motion​Data

class MotionData  

data holder class for motion data

Initializers

init(device​Motion:​)

init(deviceMotion data: CMDeviceMotion)  

init(device​Motion:​boot​Time:​)

init(deviceMotion data: CMDeviceMotion, bootTime: Double)  

Methods

display()

func display()  

get​Rotation​Rate​Data​Binary()

func getRotationRateDataBinary() -> Data  

get​User​Acceleration​Data​Binary()

func getUserAccelerationDataBinary() -> Data  

get​Magnetic​Field​Data​Binary()

func getMagneticFieldDataBinary() -> Data  

get​Attitude​Data​Binary()

func getAttitudeDataBinary() -> Data  

get​Gravity​Data​Binary()

func getGravityDataBinary() -> Data  

get​Rotation​Rate​Data​Ascii()

func getRotationRateDataAscii() -> Data  

get​User​Acceleration​Data​Ascii()

func getUserAccelerationDataAscii() -> Data  

get​Magnetic​Field​Data​Ascii()

func getMagneticFieldDataAscii() -> Data  

get​Attitude​Data​Ascii()

func getAttitudeDataAscii() -> Data  

get​Gravity​Data​Ascii()

func getGravityDataAscii() -> Data