From 220e7b019c6d5d25fca1cd256868191130c9bc46 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 9 May 2013 20:05:18 +1000 Subject: [PATCH] SITL: use PACKED attribute in fdm structure --- libraries/SITL/SITL.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/SITL/SITL.h b/libraries/SITL/SITL.h index 71a6f6fafa..01e2f897d8 100644 --- a/libraries/SITL/SITL.h +++ b/libraries/SITL/SITL.h @@ -8,8 +8,7 @@ #include #include -#pragma pack(push,1) -struct sitl_fdm { +struct PACKED sitl_fdm { // this is the packet sent by the simulator // to the APM executable to update the simulator state // All values are little-endian @@ -23,7 +22,6 @@ struct sitl_fdm { double airspeed; // m/s uint32_t magic; // 0x4c56414f }; -#pragma pack(pop) class SITL