コード例 #1
0
        internal static void PlatformStart(SensorSpeed sensorSpeed)
        {
            var manager = Platform.MotionManager;

            manager.DeviceMotionUpdateInterval = sensorSpeed.ToPlatform();

            // use a fixed reference frame where X points north and Z points vertically into the sky
            manager.StartDeviceMotionUpdates(CMAttitudeReferenceFrame.XTrueNorthZVertical, Platform.GetCurrentQueue(), DataUpdated);
        }