added rotation handlers
This commit is contained in:
parent
401db23ba2
commit
4e09837eff
5
server.c
5
server.c
@ -169,9 +169,10 @@ void *dataProcessHandler(void *data)
|
|||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
if (recvfrom(info->socket, &floats, 12, 0, (struct sockaddr *)&tmp, &addrLen) != 12)
|
if (recvfrom(info->socket, &floats, 28, 0, (struct sockaddr *)&tmp, &addrLen) != 28)
|
||||||
continue;
|
continue;
|
||||||
sendto(info->socket, &floats, 12, 0, (struct sockaddr *)&info->address, sizeof(info->address));
|
// printf("x: %f, y: %f, z: %f, rot_x: %f, rot_y: %f, rot_z: %f, rot_w: %f\n", floats.x, floats.y, floats.z, floats.rot_x, floats.rot_y, floats.rot_z, floats.rot_w);
|
||||||
|
sendto(info->socket, &floats, 28, 0, (struct sockaddr *)&info->address, sizeof(info->address));
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user