Пример #1
0
        public static void InitializeDJISDK(VideoFrameDataCallback videoCallback,
#endif
                                            BoolCallback connectedCallback,
                                            BoolCallback isFlyingCallback,
                                            DoubleCallback altitudeCallback,
                                            AttitudeCallback attitudeCallback,
                                            VelocityCallback velocityCallback
                                            )
        {
            _sdkMutex.WaitOne();
            try
            {
                _InitializeDJISDK(connectedCallback, isFlyingCallback, altitudeCallback, attitudeCallback, velocityCallback);
                _initialized = true;
#if NETFX_CORE
                _SetVideoFrameBufferCallback(videoCallback);
#else
                _SetVideoFrameDataCallback(videoCallback);
#endif
            }
            finally
            {
                _sdkMutex.ReleaseMutex();
            }
        }
Пример #2
0
 private static extern void _InitializeDJISDK(
     BoolCallback connectedCallback,
     BoolCallback isFlyingCallback,
     DoubleCallback altitudeCallback,
     AttitudeCallback attitudeCallback,
     VelocityCallback velocityCallback
     );