|
|
|
@ -14,7 +14,7 @@ set_wheel_speed (
|
|
|
|
|
req.wheel.wheel_speed[1] = w2;
|
|
|
|
|
req.wheel.wheel_speed[2] = w3;
|
|
|
|
|
req.wheel.wheel_speed[3] = w4;
|
|
|
|
|
req_finalize(session, 0x3F, SET_WHEEL_SPEED_CMDID, sizeof(struct SetWheelSpeedReq), &req);
|
|
|
|
|
req_finalize(session, 0x3F, SET_WHEEL_SPEED_CMDID, host2byte(DEFAULT_CLIENT_HOST, DEFAULT_ROBOT_INDEX), true, sizeof(struct SetWheelSpeedReq), &req);
|
|
|
|
|
req_send(session->dev_conn, &req, sizeof(struct SetWheelSpeedReq));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ set_chassis_wheel_speed (
|
|
|
|
|
req.chswheel.wheel_speed[1] = w2;
|
|
|
|
|
req.chswheel.wheel_speed[2] = w3;
|
|
|
|
|
req.chswheel.wheel_speed[3] = w4;
|
|
|
|
|
req_finalize(session, 0x3F, SET_CHASSIS_WHEEL_SPEED_CMDID, sizeof(struct SetChassisWheelSpeedReq), &req);
|
|
|
|
|
req_finalize(session, 0x3F, SET_CHASSIS_WHEEL_SPEED_CMDID, host2byte(DEFAULT_CLIENT_HOST, DEFAULT_ROBOT_INDEX), true, sizeof(struct SetChassisWheelSpeedReq), &req);
|
|
|
|
|
req_send(session->dev_conn, &req, sizeof(struct SetChassisWheelSpeedReq));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -44,7 +44,7 @@ chassis_speed_mode (
|
|
|
|
|
req.chsspeed.speed[0] = x;
|
|
|
|
|
req.chsspeed.speed[1] = y;
|
|
|
|
|
req.chsspeed.speed[2] = z;
|
|
|
|
|
req_finalize(session, 0x3F, CHASSIS_SPEED_MODE_CMDID, sizeof(struct ChassisSpeedModeReq), &req);
|
|
|
|
|
req_finalize(session, 0x3F, CHASSIS_SPEED_MODE_CMDID, host2byte(3, 6), false, sizeof(struct ChassisSpeedModeReq), &req);
|
|
|
|
|
req_send(session->dev_conn, &req, sizeof(struct ChassisSpeedModeReq));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -54,7 +54,7 @@ set_robot_mode (
|
|
|
|
|
enum MOVEMENTMODE mode ) {
|
|
|
|
|
union Request req = {0};
|
|
|
|
|
req.mvmode.mode = mode;
|
|
|
|
|
req_finalize(session, 0x3F, SET_ROBOT_MODE_CMDID, sizeof(struct SetRobotModeReq), &req);
|
|
|
|
|
req_finalize(session, 0x3F, SET_ROBOT_MODE_CMDID, host2byte(DEFAULT_CLIENT_HOST, DEFAULT_ROBOT_INDEX), true, sizeof(struct SetRobotModeReq), &req);
|
|
|
|
|
req_send(session->dev_conn, &req, sizeof(struct SetRobotModeReq));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -63,7 +63,7 @@ subnode_reset (
|
|
|
|
|
Client session ) {
|
|
|
|
|
union Request req = {0};
|
|
|
|
|
req.subnodereset.hostbyte = session->hostbyte;
|
|
|
|
|
req_finalize(session, 0x48, SUBNODE_RESET_CMDID, sizeof(struct SubNodeResetReq), &req);
|
|
|
|
|
req_finalize(session, 0x48, SUBNODE_RESET_CMDID, host2byte(DEFAULT_CLIENT_HOST, DEFAULT_ROBOT_INDEX), true, sizeof(struct SubNodeResetReq), &req);
|
|
|
|
|
req_send(session->dev_conn, &req, sizeof(struct SubNodeResetReq));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -73,6 +73,6 @@ subscribe_add_node (
|
|
|
|
|
union Request req = {0};
|
|
|
|
|
req.subnodeadd.hostbyte = session->hostbyte;
|
|
|
|
|
req.subnodeadd.sub_vision = 0x03000000;
|
|
|
|
|
req_finalize(session, 0x48, SUBSCRIBE_ADD_NODE_CMDID, sizeof(struct SubscribeAddNodeReq), &req);
|
|
|
|
|
req_finalize(session, 0x48, SUBSCRIBE_ADD_NODE_CMDID, host2byte(DEFAULT_CLIENT_HOST, DEFAULT_ROBOT_INDEX), true, sizeof(struct SubscribeAddNodeReq), &req);
|
|
|
|
|
req_send(session->dev_conn, &req, sizeof(struct SubscribeAddNodeReq));
|
|
|
|
|
}
|
|
|
|
|