Remove pause for enabling image recognition

opencv
PgSocks 1 year ago
parent 94363b56f5
commit 4d39c3811c

@ -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++) {

Loading…
Cancel
Save