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
35e87fa2
Commit
35e87fa2
authored
11 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Rover: use setup_uart()
parent
836b365b
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
APMrover2/system.pde
+2
-7
2 additions, 7 deletions
APMrover2/system.pde
with
2 additions
and
7 deletions
APMrover2/system.pde
+
2
−
7
View file @
35e87fa2
...
...
@@ -135,15 +135,10 @@ static void init_ardupilot()
check_usb_mux
();
// we have a 2nd serial port for telemetry
hal
.
uartC
->
begin
(
map_baudrate
(
g
.
serial1_baud
,
SERIAL1_BAUD
),
128
,
128
);
gcs
[
1
].
init
(
hal
.
uartC
);
gcs
[
1
].
setup_uart
(
hal
.
uartC
,
map_baudrate
(
g
.
serial1_baud
,
SERIAL1_BAUD
),
128
,
128
);
#if MAVLINK_COMM_NUM_BUFFERS > 2
// we may have a 3rd serial port for telemetry
if
(
hal
.
uartD
!=
NULL
)
{
hal
.
uartD
->
begin
(
map_baudrate
(
g
.
serial2_baud
,
SERIAL2_BAUD
),
128
,
128
);
gcs
[
2
].
init
(
hal
.
uartD
);
}
gcs
[
2
].
setup_uart
(
hal
.
uartD
,
map_baudrate
(
g
.
serial2_baud
,
SERIAL2_BAUD
),
128
,
128
);
#endif
mavlink_system
.
sysid
=
g
.
sysid_this_mav
;
...
...
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