Skip to content
Snippets Groups Projects
Commit 220e7b01 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

SITL: use PACKED attribute in fdm structure

parent 416fef73
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,7 @@ ...@@ -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 { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment