From dbb8feb595a96c127d3283dfbb7e8a3e3483a2f9 Mon Sep 17 00:00:00 2001 From: Kristoffer Richardsson Date: Fri, 3 May 2019 09:31:20 +0200 Subject: [PATCH] #427 Corrected order in struct for LH geometry data and set it to packed --- src/utils/interface/lighthouse/lighthouse_geometry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/interface/lighthouse/lighthouse_geometry.h b/src/utils/interface/lighthouse/lighthouse_geometry.h index 1ea3e44847..b295aede66 100644 --- a/src/utils/interface/lighthouse/lighthouse_geometry.h +++ b/src/utils/interface/lighthouse/lighthouse_geometry.h @@ -7,8 +7,8 @@ typedef float vec3d[vec3d_size]; typedef struct baseStationGeometry_s { - float mat[3][3]; float origin[3]; -} baseStationGeometry_t; + float mat[3][3]; +} __attribute__((packed)) baseStationGeometry_t; bool lighthouseGeometryGetPosition(baseStationGeometry_t baseStations[2], float angles[4], vec3d position, float *position_delta);