This commit is contained in:
zhoujie 2026-03-14 22:08:18 +08:00
parent 5275511b20
commit ade2008f6c

View File

@ -471,10 +471,18 @@ static void task_business_entry(void *pvParameters)
if (g_temp_req_is2d) { if (g_temp_req_is2d) {
PreprocessResult_t meta; PreprocessResult_t meta;
if (Preprocess_Execute(&raw_img, tx_buf, &meta) == 0) int8_t pp_ret = Preprocess_Execute(&raw_img, tx_buf, &meta);
TcpLogic_BuildAndSendTemperatureFrame(tx_buf, &meta, 0x02 /* REQUEST */, 1); if (pp_ret == 0) {
int8_t tx_ret = TcpLogic_BuildAndSendTemperatureFrame(tx_buf, &meta, 0x02 /* REQUEST */, 1);
DBG_APP("TEMP_REQ SEND 2D frm=%d %dx%d ret=%d\r\n",
(int)meta.FrameNumber, (int)meta.ValidWidth,
(int)meta.ValidHeight, (int)tx_ret);
} else {
DBG_APP("TEMP_REQ PP fail ret=%d\r\n", (int)pp_ret);
}
} else { } else {
send_1d_frame_from_raw(&raw_img, tx_buf); send_1d_frame_from_raw(&raw_img, tx_buf);
DBG_APP("TEMP_REQ SEND 1D frm=%d\r\n", (int)raw_img.FrameNumber);
} }
} }
#endif /* TEST_ENABLE_TEMP_REQ */ #endif /* TEST_ENABLE_TEMP_REQ */
@ -620,8 +628,8 @@ int main(void)
{ {
Config2D_t test_cfg2d; Config2D_t test_cfg2d;
memset(&test_cfg2d, 0, sizeof(test_cfg2d)); memset(&test_cfg2d, 0, sizeof(test_cfg2d));
test_cfg2d.TargetWidth = SENSOR_WIDTH; /* Full resolution */ test_cfg2d.TargetWidth = 64; /* ROI: 64x64 = 8KB, fits in 10KB buffer */
test_cfg2d.TargetHeight = SENSOR_HEIGHT; test_cfg2d.TargetHeight = 64;
test_cfg2d.TriggerRoiX = 0; /* Full-frame trigger area */ test_cfg2d.TriggerRoiX = 0; /* Full-frame trigger area */
test_cfg2d.TriggerRoiY = 0; test_cfg2d.TriggerRoiY = 0;
test_cfg2d.TriggerRoiW = SENSOR_WIDTH; test_cfg2d.TriggerRoiW = SENSOR_WIDTH;