diff --git a/NetworkSync.cpp b/NetworkSync.cpp index cd3227a..7061278 100644 --- a/NetworkSync.cpp +++ b/NetworkSync.cpp @@ -11,7 +11,7 @@ #endif #endif -#include "LinearAlgebra/Angle8.h" +#include "LinearAlgebra/Angle.h" #include "LinearAlgebra/AngleUsing.h" #include "LinearAlgebra/Spherical.h" #include "float16/float16.h" @@ -419,8 +419,8 @@ void NetworkSync::SendPolar(unsigned char* data, void NetworkSync::SendSpherical16(unsigned char* data, unsigned char* startIndex, Spherical16 s) { - SendAngle8(data, (*startIndex)++, s.horizontal.InDegrees()); - SendAngle8(data, (*startIndex)++, s.vertical.InDegrees()); + SendAngle8(data, (*startIndex)++, s.direction.horizontal.InDegrees()); + SendAngle8(data, (*startIndex)++, s.direction.vertical.InDegrees()); SendFloat16(data, startIndex, s.distance); }