Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# DD_PTZ_CONFIG

### Structure Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    typedef struct _dd_ptz_config_
    {
        unsigned int iSize;
        unsigned char enable;
        unsigned char address;
        unsigned char recv1;
        unsigned char recv2;
        unsigned int protocol;
        DD_SERIAL_CONFIG serial;
    } DD_PTZ_CONFIG;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct DD_PTZ_CONFIG
    {
        public UInt32 iSize;
        public byte enable;
        public byte address;
        public byte recv1;
        public byte recv2;
        public UInt32 protocol;
        public DD_SERIAL_CONFIG serial;
    }

### Function Description

Gimbal configuration structure.

### Member Description

Member | Type | Remark
--- | --- | ---
iSize | unsigned int | The length of this structure.
enable | unsigned char | Whether to enable the PTZ function.
address | unsigned char | Address.
recv1 | unsigned char | Reserved bytes.
recv2 | unsigned char | Reserved bytes.
protocol | unsigned int | Protocol.
serial | `DD_SERIAL_CONFIG` | Serial port.

Error Code