From 4d39c3811cc1276335e5283412b49ff66b057aec Mon Sep 17 00:00:00 2001 From: PgSocks Date: Wed, 6 Sep 2023 12:57:29 -0500 Subject: [PATCH] Remove pause for enabling image recognition --- src/robo.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/robo.c b/src/robo.c index 5f64b59..898f90e 100644 --- a/src/robo.c +++ b/src/robo.c @@ -43,7 +43,6 @@ struct RobotImp { SETTING_SDK_CONNECTION, CONNECTING_TO_DEVICE_PORT, SETTING_SDK_MODE, - STREAMING_ENABLED, RESETTING_SUBNODE, SUSBCRIBING_SUBNODE, SETTING_MOVEMENT_MODE, @@ -236,16 +235,6 @@ robot_work(Robot robot) { break; } - case STREAMING_ENABLED: - { - vision_enable ( - &req, robot->seq++, true - ); - req_send(robot->client->dev_conn, &req); - robot->state = READY; - break; - } - case READY: { if(robot->dirty_wheels) { @@ -327,10 +316,6 @@ robot_work(Robot robot) { switch(resp.header.cmd) { case 0: break; - case STREAM_CTRL_CMD: - if(!resp.resp.sdkconn.retcode) - robot->state = STREAMING_ENABLED; - break; case VISION_DETECT_INFO_CMD: // enqueue rectangles for(int i = 0; i < resp.push.vision.count; i++) {