|
@ -6,7 +6,6 @@ |
|
|
#include "socket.h" |
|
|
#include "socket.h" |
|
|
#include "sockets.h" |
|
|
#include "sockets.h" |
|
|
#include "def.h" |
|
|
#include "def.h" |
|
|
#include "protocol.h" |
|
|
|
|
|
#include "encoder.h" |
|
|
#include "encoder.h" |
|
|
#include "zport.h" |
|
|
#include "zport.h" |
|
|
|
|
|
|
|
@ -46,8 +45,9 @@ static struct sockaddr_in addr_client; |
|
|
static struct sockaddr_in sock; |
|
|
static struct sockaddr_in sock; |
|
|
socklen_t sock_len = sizeof(sock); |
|
|
socklen_t sock_len = sizeof(sock); |
|
|
|
|
|
|
|
|
active_report_data_t active_report_data_structer; |
|
|
|
|
|
|
|
|
static active_report_data_t active_report_data_structer; |
|
|
static int active_report_cycle; |
|
|
static int active_report_cycle; |
|
|
|
|
|
|
|
|
static void active_report_data_structer_init(void) |
|
|
static void active_report_data_structer_init(void) |
|
|
{ |
|
|
{ |
|
|
/* index在每次上报一次主动上报数据后+1,时间戳在获取ESync命令时更新,编码器数值在 active_report_data_structer_update中更新,校验和在上传数据前(udp_client_active_response)进行更新*/ |
|
|
/* index在每次上报一次主动上报数据后+1,时间戳在获取ESync命令时更新,编码器数值在 active_report_data_structer_update中更新,校验和在上传数据前(udp_client_active_response)进行更新*/ |
|
@ -329,3 +329,8 @@ bool *udp_client_genlock_and_esync_active_flag_ret(void) |
|
|
{ |
|
|
{ |
|
|
return &genlock_and_esync_active_flag; |
|
|
return &genlock_and_esync_active_flag; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
active_report_data_t *udp_client_get_active_report_data_structer(void) |
|
|
|
|
|
{ |
|
|
|
|
|
return &active_report_data_structer; |
|
|
|
|
|
} |