예제 #1
0
파일: DJIClient.cs 프로젝트: G433/djuwp
        /// <summary>
        /// Start the connection to the DJI Drone. It is advised to attach handlers to events prior to calling this method.
        /// </summary>
        public void Initialize()
        {
            flyingCallback           = Instance.OnFlyingChanged;
            connectedCallback        = Instance.OnConnected;
            altitudeCallback         = Instance.OnAltitudeChanged;
            attitudeCallback         = Instance.OnAttitudeChanged;
            velocityHandler          = Instance.OnVelocityChanged;
            videoFrameBufferCallback = Instance.OnVideoData;

            DJIClientNative.InitializeDJISDK(
                videoFrameBufferCallback,
                connectedCallback,
                flyingCallback,
                altitudeCallback,
                attitudeCallback,
                velocityHandler);
        }
예제 #2
0
파일: DJIClient.cs 프로젝트: G433/djuwp
 public void SetGimbleAngle(double pitch, double yaw = 0, double roll = 0, bool pitchControlInvalid = false, bool rollControlInvalid = false, bool yawControlInvalid = false, double time = 1, double mode = 1)
 {
     DJIClientNative.SetGimbleAngle(pitch, yaw, roll, pitchControlInvalid, rollControlInvalid, yawControlInvalid, time, mode);
 }
예제 #3
0
파일: DJIClient.cs 프로젝트: G433/djuwp
 public void UnInitialize()
 {
     DJIClientNative.UninitializeDJISDK();
 }
예제 #4
0
파일: DJIClient.cs 프로젝트: G433/djuwp
 public void SetJoyStickValue(float throttle, float roll, float pitch, float yaw)
 {
     DJIClientNative.SetJoyStickValue(throttle, roll, pitch, yaw);
 }
예제 #5
0
 private void UninitializeSDK()
 {
     DJIClientNative.UninitializeDJISDK();
 }