public void checkStatus() { robotConnect++; if (robotConnect > 2) { robotConnect = 3; recv.put(new RobotEvent(EventEnum.ROBOT_EVENT_NET_STATUS_ERR, (short) 0, 0)); dis.changeRobotStatus(1); } }
public void okStatus() { robotConnect = 0; dis.changeRobotStatus(0); }