/// <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); }
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); }
public void UnInitialize() { DJIClientNative.UninitializeDJISDK(); }
public void SetJoyStickValue(float throttle, float roll, float pitch, float yaw) { DJIClientNative.SetJoyStickValue(throttle, roll, pitch, yaw); }
private void UninitializeSDK() { DJIClientNative.UninitializeDJISDK(); }