DJIOcuSyncLink

@interface DJIOcuSyncLink : NSObject


This class contains methods to change OcuSync link settings.

  • Returns the DJIOcuSyncLink delegate.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) id<DJIOcuSyncLinkDelegate> _Nullable delegate;
  • Sets the channel selection mode. Both channel number and bandwidth can be changed. If the 5 GHz band is available, then channels from that band can also be used.

    Declaration

    Objective-C

    - (void)setChannelSelectionMode:(DJIOcuSyncChannelSelectionMode)mode
                     withCompletion:(DJICompletionBlock)block;

    Parameters

    mode

    Selection mode to set.

    block

    Completion block that receives the setter result.

  • Gets the channel selection mode.

    Declaration

    Objective-C

    - (void)getChannelSelectionModeWithCompletion:
        (void (^_Nonnull)(DJIOcuSyncChannelSelectionMode, NSError *_Nullable))block;

    Parameters

    block

    Completion block that receives the getter result.

  • Sets the channel bandwidth of the OcuSync link. It can be set only when the selection mode is DJIOcuSyncChannelSelectionModeManual.

    Declaration

    Objective-C

    - (void)setChannelBandwidth:(DJIOcuSyncBandwidth)bandwidth
                 withCompletion:(DJICompletionBlock)block;

    Parameters

    bandwidth

    Bandwidth to set.

    block

    Completion block that receives the setter result.

  • Gets the channel bandwidth of the OcuSync link.

    Declaration

    Objective-C

    - (void)getChannelBandwidthWithCompletion:
        (void (^_Nonnull)(DJIOcuSyncBandwidth, NSError *_Nullable))block;

    Parameters

    block

    Completion block that receives the getter result.

  • Selects the Channel Number. The OcuSync link operates on a 10 MHz or 20 MHz channel between 2400.5 MHz and 2482.5 MHz. The channel can be centered at 1 MHz steps within the band. Therefore for a 10 MHz bandwidth, the OcuSync channel can be centered at 2405.5 MHz, 2406.5 MHz and every 1 MHz to 2477.5 MHz. For a 20 MHz bandwidth, channel center can be at 2410.5 MHz to 2472.5 MHz in 1 MHz steps. The channel location within the band is specified using the Channel Number. Channel Number is defned as the integer of 0.5 MHz less than the channel center frequency. E.g. Channel Number 2406 represents the 10 MHz channel centered at 2406.5 MHz (this is only for the 10 MHz bandwidth as 20 MHz bandwidth channels start at 2410.5 MHz). Channel Number 2450 represents the channel centered at 2450.5 MHz (of any bandwidth). Use getChannelNumberValidRangeWithCompletion to check the valid Channel Numbers for a given bandwidth. Channel Number can only be set when the channel selection mode is DJIOcuSyncChannelSelectionModeManual.

    Declaration

    Objective-C

    - (void)setChannelNumber:(NSUInteger)channelNumber
              withCompletion:(DJICompletionBlock)block;

    Parameters

    channelNumber

    Channel number to set OcuSync channel to.

    block

    Completion block that receives the setter result.

  • Gets the current OcuSync Link Channel Number. The OcuSync link operates on a 10 MHz or 20 MHz channel between 2400.5 MHz and 2482.5 MHz. The channel can be centered at 1 MHz steps within the band. Therefore for a 10 MHz bandwidth, the OcuSync channel can be centered at 2405.5 MHz, 2406.5 MHz and every 1 MHz to 2477.5 MHz. For a 20 MHz bandwidth, channel center can be at 2410.5 MHz to 2472.5 MHz in 1 MHz steps. The channel location within the band is specified using the Channel Number. Channel Number is defned as the integer of 0.5 MHz less than the channel center frequency. E.g. Channel Number 2406 represents the 10 MHz channel centered at 2406.5 MHz (this is only for the 10 MHz bandwidth as 20 MHz bandwidth channels start at 2410.5 MHz). Channel Number 2450 represents the channel centered at 2450.5 MHz (of any bandwidth).

    Declaration

    Objective-C

    - (void)getChannelNumberWithCompletion:
        (void (^_Nonnull)(NSUInteger, NSError *_Nullable))block;

    Parameters

    block

    Completion block that receives the getter result.

  • Gets the valid range of Channel Numbers. The OcuSync link operates on a 10 MHz or 20 MHz channel between 2400.5 MHz and 2482.5 MHz. The channel can be centered at 1 MHz steps within the band. Therefore for a 10 MHz bandwidth, the OcuSync channel can be centered at 2405.5 MHz, 2406.5 MHz and every 1 MHz to 2477.5 MHz. For a 20 MHz bandwidth, channel center can be at 2410.5 MHz to 2472.5 MHz in 1 MHz steps. The channel location within the band is specified using the Channel Number. Channel Number is defned as the integer of 0.5 MHz less than the channel center frequency. E.g. Channel Number 2406 represents the 10 MHz channel centered at 2406.5 MHz (this is only for the 10 MHz bandwidth as 20 MHz bandwidth channels start at 2410.5 MHz). Channel Number 2450 represents the channel centered at 2450.5 MHz (of any bandwidth). This method should be used to confirm the Channel Number to be set with setChannelNumber:withCompletion: is valid.

    Declaration

    Objective-C

    - (void)getChannelNumberValidRangeWithCompletion:
        (void (^_Nonnull)(NSUInteger, NSUInteger, NSError *_Nullable))block;

    Parameters

    block

    Completion block that receives the min and max valid Channel Numbers.