Browse Source

SITL: use PACKED attribute in fdm structure

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
220e7b019c
  1. 4
      libraries/SITL/SITL.h

4
libraries/SITL/SITL.h

@ -8,8 +8,7 @@
#include <AP_Math.h> #include <AP_Math.h>
#include <GCS_MAVLink.h> #include <GCS_MAVLink.h>
#pragma pack(push,1) struct PACKED sitl_fdm {
struct sitl_fdm {
// this is the packet sent by the simulator // this is the packet sent by the simulator
// to the APM executable to update the simulator state // to the APM executable to update the simulator state
// All values are little-endian // All values are little-endian
@ -23,7 +22,6 @@ struct sitl_fdm {
double airspeed; // m/s double airspeed; // m/s
uint32_t magic; // 0x4c56414f uint32_t magic; // 0x4c56414f
}; };
#pragma pack(pop)
class SITL class SITL

Loading…
Cancel
Save