Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Ardupilot
Commits
220e7b01
Commit
220e7b01
authored
12 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
SITL: use PACKED attribute in fdm structure
parent
416fef73
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/SITL/SITL.h
+1
-3
1 addition, 3 deletions
libraries/SITL/SITL.h
with
1 addition
and
3 deletions
libraries/SITL/SITL.h
+
1
−
3
View file @
220e7b01
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment