1、修改界面:显示xport的姿态角(pitch、roll、yaw);
2、linux修改了时区后(timedatectl set-timezone "Asia/Shanghai"),psdk同步飞机的时间到nanopi需要+8hour; 3、m300遥控器界面添加手动设置曝光时间;
This commit is contained in:
@ -53,6 +53,10 @@ static T_PsdkGimbalSystemState s_userXPortSystemState = {0};
|
||||
static bool s_isUserXPortInited = false;
|
||||
static bool s_isUserXPortSystemStateVaild = false;
|
||||
|
||||
extern char * s_strPitch;
|
||||
extern char * s_strRoll;
|
||||
extern char * s_strYaw;
|
||||
|
||||
/* Exported functions definition ---------------------------------------------*/
|
||||
T_PsdkReturnCode PsdkTest_XPortInit(void)
|
||||
{
|
||||
@ -349,12 +353,22 @@ static T_PsdkReturnCode ReceiveXPortSystemState(T_PsdkGimbalSystemState systemSt
|
||||
return PSDK_ERROR_SYSTEM_MODULE_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
char * pitchTmp[10];
|
||||
char * rollTmp[10];
|
||||
char * yawTmp[10];
|
||||
static T_PsdkReturnCode ReceiveXPortAttitudeInformation(T_PsdkGimbalAttitudeInformation attitudeInformation)
|
||||
{
|
||||
PsdkLogger_UserLogDebug("receive XPort attitude information:");
|
||||
PsdkLogger_UserLogDebug("XPort attitude: pitch %d, roll %d, yaw %d.", attitudeInformation.attitude.pitch,
|
||||
attitudeInformation.attitude.roll, attitudeInformation.attitude.yaw);
|
||||
|
||||
sprintf(pitchTmp, "%d", attitudeInformation.attitude.pitch);
|
||||
sprintf(rollTmp, "%d", attitudeInformation.attitude.roll);
|
||||
sprintf(yawTmp, "%d", attitudeInformation.attitude.yaw);
|
||||
s_strPitch = pitchTmp;
|
||||
s_strRoll = rollTmp;
|
||||
s_strYaw = yawTmp;
|
||||
|
||||
return PSDK_ERROR_SYSTEM_MODULE_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "psdk_typedef.h"
|
||||
#include "psdk_xport.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
Reference in New Issue
Block a user