Fixed warnings

This commit is contained in:
Pascal Serrarens 2024-01-23 16:02:29 +01:00
parent b86484d59d
commit ec1da8f81c
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ Vector3 NetworkPerception::ReceiveVector3(unsigned char *data, int startIndex) {
void NetworkPerception::ReceiveObject(unsigned char *data, Roboid *roboid) {
unsigned char objectId = data[1];
char poseType = data[2];
// char poseType = data[2];
Vector3 worldPosition = ReceiveVector3(data, 3);
Vector3 worldAngles = ReceiveVector3(data, 15);
Quaternion worldOrientation = Quaternion::Euler(worldAngles);

View File

@ -60,7 +60,7 @@ void NetworkSync::PublishTrackedObject(SendBuffer sendBuffer,
UInt16 bufferSize = 3 + 12;
UInt8 buffer[bufferSize] = {
PoseMsg,
object->id,
(UInt8)object->id,
Pose_Position,
};
SendVector3(buffer, 3, worldPosition3);