NEW: release DJI Payload-SDK version 3.12.0
This commit is contained in:
@ -111,6 +111,7 @@ void DjiUser_StartTask(void const *argument)
|
||||
.UartWriteData = HalUart_WriteData,
|
||||
.UartReadData = HalUart_ReadData,
|
||||
.UartGetStatus = HalUart_GetStatus,
|
||||
.UartGetDeviceInfo = HalUart_GetDeviceInfo,
|
||||
};
|
||||
T_DjiHalI2cHandler i2CHandler = {
|
||||
.I2cInit = HalI2c_Init,
|
||||
@ -311,7 +312,8 @@ void DjiUser_StartTask(void const *argument)
|
||||
aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M350_RTK)
|
||||
&& aircraftInfoBaseInfo.mountPosition != DJI_MOUNT_POSITION_TYPE_EXTENSION_PORT)
|
||||
|| DJI_AIRCRAFT_TYPE_M4T == aircraftInfoBaseInfo.aircraftType
|
||||
|| DJI_AIRCRAFT_TYPE_M4E == aircraftInfoBaseInfo.aircraftType
|
||||
|| DJI_AIRCRAFT_TYPE_M4TD == aircraftInfoBaseInfo.aircraftType
|
||||
|| DJI_AIRCRAFT_TYPE_M4D == aircraftInfoBaseInfo.aircraftType
|
||||
) {
|
||||
if (DjiTest_PositioningStartService() != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) {
|
||||
USER_LOG_ERROR("psdk positioning init error");
|
||||
|
||||
@ -38,6 +38,18 @@
|
||||
/* Private constants ---------------------------------------------------------*/
|
||||
#define COMMUNICATION_UART_NUM UART_NUM_3
|
||||
|
||||
#define HAL_UART_USB_UART_FT232_VID (0x0403)
|
||||
#define HAL_UART_USB_UART_FT232_PID (0x6001)
|
||||
|
||||
#define HAL_UART_USB_UART_CP2102_VID (0x10C4)
|
||||
#define HAL_UART_USB_UART_CP2102_PID (0xEA60)
|
||||
|
||||
#define HAL_UART_USB_UART_VCOM_VID (0x2CA3)
|
||||
#define HAL_UART_USB_UART_VCOM_PID (0xF002)
|
||||
|
||||
#define HAL_UART_USB_UART_VID HAL_UART_USB_UART_FT232_VID
|
||||
#define HAL_UART_USB_UART_PID HAL_UART_USB_UART_FT232_PID
|
||||
|
||||
/* Private types -------------------------------------------------------------*/
|
||||
typedef enum {
|
||||
USER_UART_NUM0 = 0,
|
||||
@ -120,6 +132,20 @@ T_DjiReturnCode HalUart_GetStatus(E_DjiHalUartNum uartNum, T_DjiUartStatus *stat
|
||||
return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
T_DjiReturnCode HalUart_GetDeviceInfo(T_DjiHalUartDeviceInfo *deviceInfo)
|
||||
{
|
||||
|
||||
if (deviceInfo == NULL) {
|
||||
return DJI_ERROR_SYSTEM_MODULE_CODE_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
deviceInfo->vid = HAL_UART_USB_UART_VID;
|
||||
deviceInfo->pid = HAL_UART_USB_UART_PID;
|
||||
|
||||
return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/* Private functions definition-----------------------------------------------*/
|
||||
|
||||
/****************** (C) COPYRIGHT DJI Innovations *****END OF FILE****/
|
||||
|
||||
@ -47,6 +47,7 @@ T_DjiReturnCode HalUart_DeInit(T_DjiUartHandle uartHandle);
|
||||
T_DjiReturnCode HalUart_WriteData(T_DjiUartHandle uartHandle, const uint8_t *buf, uint32_t len, uint32_t *realLen);
|
||||
T_DjiReturnCode HalUart_ReadData(T_DjiUartHandle uartHandle, uint8_t *buf, uint32_t len, uint32_t *realLen);
|
||||
T_DjiReturnCode HalUart_GetStatus(E_DjiHalUartNum uartNum, T_DjiUartStatus *status);
|
||||
T_DjiReturnCode HalUart_GetDeviceInfo(T_DjiHalUartDeviceInfo *deviceInfo);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@ -935,6 +935,11 @@
|
||||
</File>
|
||||
<File>
|
||||
<FileType>5</FileType>
|
||||
<FileName>dji_cloud_api_by_websockt.h</FileName>
|
||||
<FilePath>..\..\..\..\..\..\..\psdk_lib\include\dji_cloud_api_by_websockt.h</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileType>5</FileType>
|
||||
<FileName>dji_core.h</FileName>
|
||||
<FilePath>..\..\..\..\..\..\..\psdk_lib\include\dji_core.h</FilePath>
|
||||
</File>
|
||||
@ -1010,6 +1015,11 @@
|
||||
</File>
|
||||
<File>
|
||||
<FileType>5</FileType>
|
||||
<FileName>dji_open_ar.h</FileName>
|
||||
<FilePath>..\..\..\..\..\..\..\psdk_lib\include\dji_open_ar.h</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileType>5</FileType>
|
||||
<FileName>dji_payload_camera.h</FileName>
|
||||
<FilePath>..\..\..\..\..\..\..\psdk_lib\include\dji_payload_camera.h</FilePath>
|
||||
</File>
|
||||
|
||||
Reference in New Issue
Block a user