The pipelines to transmit data between DJI Payload device and DJI mobile SDK. This function does not support dual controllers scenarios. It's only supported by Matrice 300 RTK.
Gets the bandwidth of the upstream (from Mobile SDK to Payload). The unit is bytes/s. The bandwidth is determined by the firmware and currently it is not larger than 500 bytes/s.
Input Parameters:
NSUInteger upstreamBandwidth
The upstream bandwidth determined by the firmware.
Gets if function is limited. If Payload's function is limited, it may happen because: - The payload is not functioning properly. - Skyport or X-Port is not bound. - The encryption chip has exception. - The aircraft doesn't support this Payload model.
When it returns YES, video stream type on PSDK is set to DJI video streaming channel. Please use DJIVideoFeed in DJIVideoFeeder to receive the video data. When it returns NO, video stream type on PSDK is set to custom video streaming channel. Please use payload:didReceiveVideoData to receive custom video data.
The widget corresponding to the widget type and the index. nil if the widgets are not ready or there is no widget corresponding to the widget type and the index.
Sends data to payload. - The length of the data to send cannot exceed 32 bytes for Matrice 200 series. - The length of the data to send cannot exceed 128 bytes for Matrice 200 V2 series. The throughput cannot exceed the bandwidth returned by getUpstreamBandwidthWithCompletion.
Receives the command data sent from the payload device. The command data is sent from the UART/CAN channel of the payload device and the bandwidth of this channel is 3K bytes/s on M200 series.
Receives the stream data sent from the payload device. The stream data is sent from the UDP channel of the payload device. This channel has wider bandwidth than the channel for command data but data might get lost without re-transmission.
Updates a set of payload shortcuts in main interface. if the pay load's data is invalid, an empty array will be updated. It is only supported by DJI Skyport 2.0 and DJI X-Port.
Fetches widget configuration. Mobile SDK will fetch the configuration when it first launches. Returns nil if initial fetching failed. It is only supported by DJI SKYPORT 2.0.
Development phase has more settings than product phase, including control parameters auto-tuning, coaxiality detection, balance detection, stiffness adjustment. Please note that this phase should be used with DJI Assistant 2, which has bound with Payload SDK developer account. Product phase means that the product is in the stage ready to sell. During this stage, development settings, i.e., control parameters auto-tuning, coaxiality detection, balance detection, stiffness adjustment, should be hidden from user interface.