Fixed warnings
This commit is contained in:
parent
b86484d59d
commit
ec1da8f81c
@ -36,7 +36,7 @@ Vector3 NetworkPerception::ReceiveVector3(unsigned char *data, int startIndex) {
|
|||||||
|
|
||||||
void NetworkPerception::ReceiveObject(unsigned char *data, Roboid *roboid) {
|
void NetworkPerception::ReceiveObject(unsigned char *data, Roboid *roboid) {
|
||||||
unsigned char objectId = data[1];
|
unsigned char objectId = data[1];
|
||||||
char poseType = data[2];
|
// char poseType = data[2];
|
||||||
Vector3 worldPosition = ReceiveVector3(data, 3);
|
Vector3 worldPosition = ReceiveVector3(data, 3);
|
||||||
Vector3 worldAngles = ReceiveVector3(data, 15);
|
Vector3 worldAngles = ReceiveVector3(data, 15);
|
||||||
Quaternion worldOrientation = Quaternion::Euler(worldAngles);
|
Quaternion worldOrientation = Quaternion::Euler(worldAngles);
|
||||||
|
@ -60,7 +60,7 @@ void NetworkSync::PublishTrackedObject(SendBuffer sendBuffer,
|
|||||||
UInt16 bufferSize = 3 + 12;
|
UInt16 bufferSize = 3 + 12;
|
||||||
UInt8 buffer[bufferSize] = {
|
UInt8 buffer[bufferSize] = {
|
||||||
PoseMsg,
|
PoseMsg,
|
||||||
object->id,
|
(UInt8)object->id,
|
||||||
Pose_Position,
|
Pose_Position,
|
||||||
};
|
};
|
||||||
SendVector3(buffer, 3, worldPosition3);
|
SendVector3(buffer, 3, worldPosition3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user