Skip to content

Commit 860751a

Browse files
authored
Merge pull request #221 from dji-sdk/release/V3.9.2
NEW: release DJI Payload-SDK version 3.9.2
2 parents 159708e + f4734e1 commit 860751a

File tree

10 files changed

+22
-19
lines changed

10 files changed

+22
-19
lines changed

README.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# DJI Payload SDK (PSDK)
22

3-
![](https://img.shields.io/badge/version-V3.9.1-red.svg)
4-
![](https://img.shields.io/badge/platform-linux_|_rtos-blue.svg)
5-
![](https://img.shields.io/badge/license-MIT-purple.svg)
3+
![](https://img.shields.io/badge/version-V3.9.2-orange.svg)
4+
![](https://img.shields.io/badge/platform-linux_|_rtos-purple.svg)
5+
![](https://img.shields.io/badge/license-MIT-pink.svg)
66

77
## What is the DJI Payload SDK?
88

@@ -23,16 +23,15 @@ to get the latest version information.
2323

2424
## Latest Release
2525

26-
The latest release version of PSDK is 3.9.1. This version of Payload SDK mainly add some new features support and fixed some
26+
The latest release version of PSDK is 3.9.2. This version of Payload SDK mainly add some new features support and fixed some
2727
bugs. Please refer to the release notes for detailed changes list.
2828

29-
* GEO Caging feature supported for the M3D series models.
30-
* Flight control function and waypoint mission supported for the FlyCart 30 model.
31-
* Fixed an issue with subscribing to the flight control topics for M300 RTK and M350 RTK models.
32-
* Resolved a problem with DJI Smart Controller Enterprise not recognizing PSDK payload devices on M300 RTK.
33-
* Fixed an issue with acquiring the camera stream without I-frames on M3D series models.
34-
* Added the MOP 49154 channel as an alternative to the 49152 channel for subscribing to the L2 camera's real-time 3D point cloud. This enhancement avoids conflicts when subscribing to point cloud data concurrently with Pilot2 and improves the quality of the point cloud data.
35-
> Note: When using M300 RTK with the DJI Smart Controller Enterprise to activate payloads via the OSDK interface, the remote controller will not recognize the payload device if the virtual serial port is not utilized.
29+
* Added support for cloud-based custom small data transmission on Matrice 3D/3TD models.
30+
* Fixed an issue with acquiring disordered sequence numbers of the RTCM data packet.
31+
> Note: When transmitting the video stream from the payload camera, only the stream in DJI-H264 format is supported. The
32+
CUSTOM-H264 stream is not supported. Use the latest PSDK community version to transmit the stream in the CUSTOM-H264 format.
33+
> Note: Non-RC flight is not supported by default. Call the DjiFlightController_SetRCLostActionEnableStatus interface to enable
34+
this feature.
3635

3736
## License
3837

psdk_lib/include/dji_version.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ extern "C" {
3535
/* Exported constants --------------------------------------------------------*/
3636
#define DJI_VERSION_MAJOR 3 /*!< DJI SDK major version num, when have incompatible API changes. Range from 0 to 99. */
3737
#define DJI_VERSION_MINOR 9 /*!< DJI SDK minor version num, when add functionality in a backwards compatible manner changes. Range from 0 to 99. */
38-
#define DJI_VERSION_MODIFY 1 /*!< DJI SDK modify version num, when have backwards compatible bug fixes changes. Range from 0 to 99. */
38+
#define DJI_VERSION_MODIFY 2 /*!< DJI SDK modify version num, when have backwards compatible bug fixes changes. Range from 0 to 99. */
3939
#define DJI_VERSION_BETA 0 /*!< DJI SDK version beta info, release version will be 0, when beta version release changes. Range from 0 to 255. */
40-
#define DJI_VERSION_BUILD 2090 /*!< DJI SDK version build info, when jenkins trigger build changes. Range from 0 to 65535. */
40+
#define DJI_VERSION_BUILD 2125 /*!< DJI SDK version build info, when jenkins trigger build changes. Range from 0 to 65535. */
4141

4242
/* Exported types ------------------------------------------------------------*/
4343

Binary file not shown.
Binary file not shown.
Binary file not shown.
1.4 KB
Binary file not shown.
Binary file not shown.

samples/sample_c++/platform/linux/common/osal/osal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ T_DjiReturnCode Osal_GetTimeUs(uint64_t *us)
320320
if (s_localTimeUsOffset == 0) {
321321
s_localTimeUsOffset = *us;
322322
} else {
323-
*us = *us - s_localTimeMsOffset;
323+
*us = *us - s_localTimeUsOffset;
324324
}
325325

326326
return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS;

samples/sample_c/module_sample/data_transmission/test_data_transmission.c

+8-4
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ T_DjiReturnCode DjiTest_DataTransmissionStartService(void)
8383
return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN;
8484
}
8585

86-
if (s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30 ||
87-
s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30T) {
86+
if (s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30 ||
87+
s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30T ||
88+
s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M3D ||
89+
s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M3TD) {
8890
channelAddress = DJI_CHANNEL_ADDRESS_CLOUD_API;
8991
djiStat = DjiLowSpeedDataChannel_RegRecvDataCallback(channelAddress, ReceiveDataFromCloud);
9092
if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) {
@@ -206,8 +208,10 @@ static void *UserDataTransmission_Task(void *arg)
206208
USER_LOG_ERROR("get send to mobile channel state error.");
207209
}
208210

209-
if (s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30 ||
210-
s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30T) {
211+
if (s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30 ||
212+
s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30T ||
213+
s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M3D ||
214+
s_aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M3TD) {
211215
channelAddress = DJI_CHANNEL_ADDRESS_CLOUD_API;
212216
djiStat = DjiLowSpeedDataChannel_SendData(channelAddress, dataToBeSent, sizeof(dataToBeSent));
213217
if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS)

samples/sample_c/platform/linux/common/osal/osal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ T_DjiReturnCode Osal_GetTimeUs(uint64_t *us)
323323
if (s_localTimeUsOffset == 0) {
324324
s_localTimeUsOffset = *us;
325325
} else {
326-
*us = *us - s_localTimeMsOffset;
326+
*us = *us - s_localTimeUsOffset;
327327
}
328328

329329
return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS;

0 commit comments

Comments
 (0)