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
f8962d24
Commit
f8962d24
authored
10 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
AntennaTracker: updates for new AP_Baro API
parent
e575bc26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AntennaTracker/AntennaTracker.pde
+1
-15
1 addition, 15 deletions
AntennaTracker/AntennaTracker.pde
AntennaTracker/sensors.pde
+1
-1
1 addition, 1 deletion
AntennaTracker/sensors.pde
with
2 additions
and
16 deletions
AntennaTracker/AntennaTracker.pde
+
1
−
15
View file @
f8962d24
...
...
@@ -117,21 +117,7 @@ void gcs_send_text_fmt(const prog_char_t *fmt, ...);
////////////////////////////////////////////////////////////////////////////////
static
AP_GPS
gps
;
#if CONFIG_BARO == HAL_BARO_BMP085
static
AP_Baro_BMP085
barometer
;
#elif CONFIG_BARO == HAL_BARO_PX4
static
AP_Baro_PX4
barometer
;
#elif CONFIG_BARO == HAL_BARO_VRBRAIN
static
AP_Baro_VRBRAIN
barometer
;
#elif CONFIG_BARO == HAL_BARO_HIL
static
AP_Baro_HIL
barometer
;
#elif CONFIG_BARO == HAL_BARO_MS5611
static
AP_Baro_MS5611
barometer
(
&
AP_Baro_MS5611
::
i2c
);
#elif CONFIG_BARO == HAL_BARO_MS5611_SPI
static
AP_Baro_MS5611
barometer
(
&
AP_Baro_MS5611
::
spi
);
#else
#error Unrecognized CONFIG_BARO setting
#endif
static
AP_Baro
barometer
;
#if CONFIG_COMPASS == HAL_COMPASS_PX4
static
AP_Compass_PX4
compass
;
...
...
This diff is collapsed.
Click to expand it.
AntennaTracker/sensors.pde
+
1
−
1
View file @
f8962d24
...
...
@@ -10,7 +10,7 @@ static void init_barometer(void)
// read the barometer and return the updated altitude in meters
static
void
update_barometer
(
void
)
{
barometer
.
read
();
barometer
.
update
();
}
...
...
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