|
|
@ -20,6 +20,7 @@ static uint32_t m_xsync_workstate_start_sig_irq_pin_off; |
|
|
|
static uint32_t m_timecode_trigger_input_off; |
|
|
|
static uint32_t m_xync_trigger_input_off; |
|
|
|
static uint32_t m_xyns_camera_sync_packet_last_report_tp; |
|
|
|
static bool m_first_frame = true; |
|
|
|
#define TAG "timecode" |
|
|
|
/** |
|
|
|
* @brief 构建并发送时间码数据包 |
|
|
@ -160,8 +161,9 @@ static void xync_signal_report_thread(void const *argument) { |
|
|
|
create_and_send_timecode(tc0, tc1, cnt); // timecode广播包 |
|
|
|
last_report_packet_time = xs_get_ticket(); |
|
|
|
|
|
|
|
second = daycnt * 24 * 3600 + result.timeinall; |
|
|
|
if (dtime >= 1|| second == 0) { |
|
|
|
if (dtime >= 1 || m_first_frame) { |
|
|
|
m_first_frame = false; |
|
|
|
second = daycnt * 24 * 3600 + result.timeinall; |
|
|
|
create_and_send_camera_sync_msg(second); |
|
|
|
} |
|
|
|
} |
|
|
|