Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
c-astral-wrapper
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
c-astral-wrapper
Commits
4f745fab
Commit
4f745fab
authored
May 22, 2023
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force udp connection
parent
7c993b10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
mavsdk_wrapper.cpp
mavsdk_wrapper.cpp
+2
-4
No files found.
mavsdk_wrapper.cpp
View file @
4f745fab
...
@@ -92,14 +92,12 @@ static double toDeg(double angle) {
...
@@ -92,14 +92,12 @@ static double toDeg(double angle) {
}
}
int
start
(
const
char
*
ip
,
int
port
,
const
char
*
log_file
,
int
timeout
)
{
int
start
(
const
char
*
ip
,
int
port
,
const
char
*
log_file
,
int
timeout
)
{
char
url
[
32
];
std
::
string
remote_ip
(
ip
);
sprintf
(
url
,
"udp://%s:%d"
,
ip
,
port
);
std
::
string
connection_url
(
url
);
ConnectionResult
connection_result
;
ConnectionResult
connection_result
;
float
abs_altitude
;
float
abs_altitude
;
log_file_fd
.
open
(
log_file
);
log_file_fd
.
open
(
log_file
);
connection_result
=
_mavsdk
.
add_
any_connection
(
connection_url
);
connection_result
=
_mavsdk
.
add_
udp_connection
(
remote_ip
,
port
);
if
(
connection_result
!=
ConnectionResult
::
Success
)
{
if
(
connection_result
!=
ConnectionResult
::
Success
)
{
log_error_from_result
(
"Connection failed"
,
connection_result
);
log_error_from_result
(
"Connection failed"
,
connection_result
);
return
-
1
;
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment