Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
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
Baitboat
Commits
7dd58227
Commit
7dd58227
authored
13 years ago
by
Michael Oborne
Browse files
Options
Downloads
Patches
Plain Diff
AP fix sitl hil attitude mode.
parent
21f0ed00
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ArduPlane/APM_Config.h
+1
-1
1 addition, 1 deletion
ArduPlane/APM_Config.h
ArduPlane/ArduPlane.pde
+7
-0
7 additions, 0 deletions
ArduPlane/ArduPlane.pde
with
8 additions
and
1 deletion
ArduPlane/APM_Config.h
+
1
−
1
View file @
7dd58227
...
...
@@ -16,7 +16,7 @@
// The following are the recommended settings for Xplane
// simulation. Remove the leading "/* and trailing "*/" to enable:
#define HIL_MODE HIL_MODE_DISABLED
//
#define HIL_MODE HIL_MODE_DISABLED
/*
// HIL_MODE SELECTION
...
...
This diff is collapsed.
Click to expand it.
ArduPlane/ArduPlane.pde
+
7
−
0
View file @
7dd58227
...
...
@@ -224,6 +224,11 @@ AP_AHRS_HIL ahrs(&imu, g_gps);
AP_GPS_HIL
g_gps_driver
(
NULL
);
AP_Compass_HIL
compass
;
// never used
AP_Baro_BMP085_HIL
barometer
;
#ifdef DESKTOP_BUILD
#include
<SITL.h>
SITL
sitl
;
AP_InertialSensor_Oilpan
ins
(
&
adc
);
#endif
#else
#error Unrecognised HIL_MODE setting.
...
...
@@ -705,7 +710,9 @@ static void fast_loop()
// Read Airspeed
// -------------
if
(
airspeed
.
enabled
())
{
#if HIL_MODE != HIL_MODE_ATTITUDE
read_airspeed
();
#endif
}
#if HIL_MODE == HIL_MODE_SENSORS
...
...
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