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