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
1ab5d719
Commit
1ab5d719
authored
10 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
GPS: init primary_instance to zero
parent
a8a6368f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AP_GPS/AP_GPS.cpp
+1
-2
1 addition, 2 deletions
libraries/AP_GPS/AP_GPS.cpp
with
1 addition
and
2 deletions
libraries/AP_GPS/AP_GPS.cpp
+
1
−
2
View file @
1ab5d719
...
@@ -72,8 +72,8 @@ void AP_GPS::init(DataFlash_Class *dataflash)
...
@@ -72,8 +72,8 @@ void AP_GPS::init(DataFlash_Class *dataflash)
{
{
_DataFlash
=
dataflash
;
_DataFlash
=
dataflash
;
hal
.
uartB
->
begin
(
38400UL
,
256
,
16
);
hal
.
uartB
->
begin
(
38400UL
,
256
,
16
);
#if GPS_MAX_INSTANCES > 1
primary_instance
=
0
;
primary_instance
=
0
;
#if GPS_MAX_INSTANCES > 1
if
(
hal
.
uartE
!=
NULL
)
{
if
(
hal
.
uartE
!=
NULL
)
{
hal
.
uartE
->
begin
(
38400UL
,
256
,
16
);
hal
.
uartE
->
begin
(
38400UL
,
256
,
16
);
}
}
...
@@ -363,7 +363,6 @@ AP_GPS::update(void)
...
@@ -363,7 +363,6 @@ AP_GPS::update(void)
}
}
}
}
#else
#else
primary_instance
=
0
;
num_instances
=
1
;
num_instances
=
1
;
#endif // GPS_MAX_INSTANCES
#endif // GPS_MAX_INSTANCES
// update notify with gps status. We always base this on the primary_instance
// update notify with gps status. We always base this on the primary_instance
...
...
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