release v0.9
This commit is contained in:
1 parent
0045c0c390
commit
14f2ff94d0
11 files changed
+337
-61
No files matched your search
@@ -452,6 +452,14 @@ void edc_proto_send_request(void)
|
||||
ESP_LOGI(TAG, "REQUEST sent");
|
||||
}
|
||||
|
||||
void edc_proto_send_recognize(void)
|
||||
{
|
||||
if (!s_uart_enabled) return;
|
||||
uart_send_frame(EDC_CMD_RECOGNIZE, NULL, 0);
|
||||
s_stat.request_sent++;
|
||||
ESP_LOGI(TAG, "RECOGNIZE sent");
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
* 统计
|
||||
* ================================================================ */
|
||||
|
||||
@@ -76,6 +76,7 @@ typedef enum {
|
||||
EDC_CMD_CYCLE_DATA = 0x01, /* MPU → MCU: 下发 Cycle 数据 */
|
||||
EDC_CMD_CYCLE_DONE = 0x02, /* MCU → MPU: Cycle 执行完成 */
|
||||
EDC_CMD_CYCLE_REQUEST = 0x03, /* MCU → MPU: 请求下一个 Cycle */
|
||||
EDC_CMD_RECOGNIZE = 0x04, /* MCU → MPU: 触发视觉识别 */
|
||||
EDC_CMD_ACK = 0x80, /* 通用应答 */
|
||||
EDC_CMD_NACK = 0xFF, /* 错误 */
|
||||
} edc_cmd_t;
|
||||
@@ -209,6 +210,11 @@ void edc_proto_send_done(uint16_t cycle_id);
|
||||
*/
|
||||
void edc_proto_send_request(void);
|
||||
|
||||
/**
|
||||
* @brief 发送 RECOGNIZE 触发视觉识别 (通过 UART)
|
||||
*/
|
||||
void edc_proto_send_recognize(void);
|
||||
|
||||
/**
|
||||
* @brief 获取统计信息
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user